forked from AkkomaGang/akkoma-fe
Attempt to block settings sync
This commit is contained in:
parent
35c4cad520
commit
1605035bb3
3 changed files with 0 additions and 9 deletions
|
@ -98,7 +98,6 @@ const GeneralTab = {
|
||||||
get: function () { return this.$store.getters.mergedConfig.profile },
|
get: function () { return this.$store.getters.mergedConfig.profile },
|
||||||
set: function (val) {
|
set: function (val) {
|
||||||
this.$store.dispatch('setOption', { name: 'profile', value: val })
|
this.$store.dispatch('setOption', { name: 'profile', value: val })
|
||||||
this.$store.dispatch('getSettingsProfile')
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
settingsVersion () {
|
settingsVersion () {
|
||||||
|
@ -132,12 +131,10 @@ const GeneralTab = {
|
||||||
},
|
},
|
||||||
loadSettingsProfile (name) {
|
loadSettingsProfile (name) {
|
||||||
this.$store.commit('setOption', { name: 'profile', value: name })
|
this.$store.commit('setOption', { name: 'profile', value: name })
|
||||||
this.$store.dispatch('getSettingsProfile', true)
|
|
||||||
},
|
},
|
||||||
createSettingsProfile () {
|
createSettingsProfile () {
|
||||||
this.$store.dispatch('setOption', { name: 'profile', value: this.newProfileName })
|
this.$store.dispatch('setOption', { name: 'profile', value: this.newProfileName })
|
||||||
this.$store.dispatch('setOption', { name: 'profileVersion', value: 1 })
|
this.$store.dispatch('setOption', { name: 'profileVersion', value: 1 })
|
||||||
this.$store.dispatch('syncSettings')
|
|
||||||
this.newProfileName = ''
|
this.newProfileName = ''
|
||||||
},
|
},
|
||||||
forceSync () {
|
forceSync () {
|
||||||
|
|
|
@ -215,9 +215,6 @@ const config = {
|
||||||
},
|
},
|
||||||
setOption ({ commit, dispatch }, { name, value, manual }) {
|
setOption ({ commit, dispatch }, { name, value, manual }) {
|
||||||
commit('setOption', { name, value })
|
commit('setOption', { name, value })
|
||||||
if (manual === true) {
|
|
||||||
dispatch('syncSettings')
|
|
||||||
}
|
|
||||||
switch (name) {
|
switch (name) {
|
||||||
case 'theme':
|
case 'theme':
|
||||||
setPreset(value)
|
setPreset(value)
|
||||||
|
|
|
@ -670,9 +670,6 @@ const users = {
|
||||||
store.dispatch('setLayoutWidth', windowWidth())
|
store.dispatch('setLayoutWidth', windowWidth())
|
||||||
store.dispatch('setLayoutHeight', windowHeight())
|
store.dispatch('setLayoutHeight', windowHeight())
|
||||||
store.dispatch('getSupportedTranslationlanguages')
|
store.dispatch('getSupportedTranslationlanguages')
|
||||||
store.dispatch('getSettingsProfile')
|
|
||||||
store.dispatch('listSettingsProfiles')
|
|
||||||
store.dispatch('startFetchingConfig')
|
|
||||||
store.dispatch('startFetchingAnnouncements')
|
store.dispatch('startFetchingAnnouncements')
|
||||||
if (user.role === 'admin' || user.role === 'moderator') {
|
if (user.role === 'admin' || user.role === 'moderator') {
|
||||||
store.dispatch('startFetchingReports')
|
store.dispatch('startFetchingReports')
|
||||||
|
|
Loading…
Reference in a new issue