Merge pull request #148 from ttshivers/fix_display_defaults
fix(defaults): fix display of default party pause and auto host settings
This commit is contained in:
commit
159eea25da
|
@ -69,8 +69,8 @@ export default {
|
||||||
roomId: getters.GET_ROOM,
|
roomId: getters.GET_ROOM,
|
||||||
password: getters.GET_PASSWORD,
|
password: getters.GET_PASSWORD,
|
||||||
desiredUsername: getters.GET_DISPLAY_USERNAME,
|
desiredUsername: getters.GET_DISPLAY_USERNAME,
|
||||||
desiredPartyPausingEnabled: rootGetters.GET_CONFIG.default_party_pause_enabled,
|
desiredPartyPausingEnabled: getters.IS_PARTY_PAUSING_ENABLED,
|
||||||
desiredAutoHostEnabled: rootGetters.GET_CONFIG.default_auto_host_enabled,
|
desiredAutoHostEnabled: getters.IS_AUTO_HOST_ENABLED,
|
||||||
thumb: rootGetters['plex/GET_PLEX_USER'].thumb,
|
thumb: rootGetters['plex/GET_PLEX_USER'].thumb,
|
||||||
syncFlexibility: rootGetters['settings/GET_SYNCFLEXIBILITY'],
|
syncFlexibility: rootGetters['settings/GET_SYNCFLEXIBILITY'],
|
||||||
...joinPlayerData,
|
...joinPlayerData,
|
||||||
|
@ -156,6 +156,8 @@ export default {
|
||||||
commit('SET_SOCKET_ID', null);
|
commit('SET_SOCKET_ID', null);
|
||||||
commit('CLEAR_MESSAGES');
|
commit('CLEAR_MESSAGES');
|
||||||
commit('SET_MESSAGES_USER_CACHE', {});
|
commit('SET_MESSAGES_USER_CACHE', {});
|
||||||
|
commit('SET_IS_PARTY_PAUSING_ENABLED', null);
|
||||||
|
commit('SET_IS_AUTO_HOST_ENABLED', null);
|
||||||
},
|
},
|
||||||
|
|
||||||
SEND_MESSAGE: async ({ dispatch, getters }, msg) => {
|
SEND_MESSAGE: async ({ dispatch, getters }, msg) => {
|
||||||
|
|
|
@ -25,8 +25,13 @@ export default {
|
||||||
GET_ROOM: (state) => state.room,
|
GET_ROOM: (state) => state.room,
|
||||||
GET_USERS: (state) => state.users,
|
GET_USERS: (state) => state.users,
|
||||||
GET_MESSAGES: (state) => state.messages,
|
GET_MESSAGES: (state) => state.messages,
|
||||||
IS_PARTY_PAUSING_ENABLED: (state) => state.isPartyPausingEnabled,
|
|
||||||
IS_AUTO_HOST_ENABLED: (state) => state.isAutoHostEnabled,
|
IS_PARTY_PAUSING_ENABLED: (state, getters, rootState, rootGetters) => state.isPartyPausingEnabled
|
||||||
|
?? rootGetters.GET_CONFIG.default_party_pause_enabled,
|
||||||
|
|
||||||
|
IS_AUTO_HOST_ENABLED: (state, getters, rootState, rootGetters) => state.isAutoHostEnabled
|
||||||
|
?? rootGetters.GET_CONFIG.default_auto_host_enabled,
|
||||||
|
|
||||||
GET_HOST_USER: (state, getters) => getters.GET_USER(getters.GET_HOST_ID),
|
GET_HOST_USER: (state, getters) => getters.GET_USER(getters.GET_HOST_ID),
|
||||||
AM_I_HOST: (state, getters) => getters.GET_HOST_ID === getters.GET_SOCKET_ID,
|
AM_I_HOST: (state, getters) => getters.GET_HOST_ID === getters.GET_SOCKET_ID,
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue