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
Signed by untrusted user who does not match committer: konrad
GPG key ID: F40E70337AB24C9B
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: {