1
0

Hide totp settings if it is disabled server side

This commit is contained in:
kolaente
2020-05-29 18:49:50 +02:00
parent bc603605a7
commit c3ba068dd7
2 changed files with 8 additions and 1 deletions

View File

@ -13,6 +13,7 @@ export default {
registrationEnabled: true,
availableMigrators: [],
taskAttachmentsEnabled: true,
totpEnabled: true,
}),
mutations: {
[CONFIG](state, config) {
@ -24,6 +25,7 @@ export default {
state.registrationEnabled = config.registration_enabled
state.availableMigrators = config.available_migrators
state.taskAttachmentsEnabled = config.task_attachments_enabled
state.totpEnabled = config.totp_enabled
},
},
actions: {