chore: rename passwordRequired variable so it is more clear what it does
All checks were successful
continuous-integration/drone/pr Build is passing

This commit is contained in:
kolaente 2021-10-31 14:09:53 +01:00
parent d2292e047a
commit bba2293742
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
2 changed files with 6 additions and 6 deletions

View File

@ -1,7 +1,7 @@
<template>
<div class="content">
<h1>{{ $t('user.export.downloadTitle') }}</h1>
<template v-if="passwordRequired">
<template v-if="isLocalUser">
<p>{{ $t('user.export.descriptionPasswordRequired') }}</p>
<div class="field">
<label class="label" for="currentPasswordDataExport">
@ -51,13 +51,13 @@ export default {
this.dataExportService = new DataExportService()
},
computed: {
passwordRequired() {
isLocalUser() {
return this.$store.state.auth.info?.isLocalUser
},
},
methods: {
download() {
if (this.password === '' && this.passwordRequired) {
if (this.password === '' && this.isLocalUser) {
this.errPasswordRequired = true
this.$refs.passwordInput.focus()
return

View File

@ -3,7 +3,7 @@
<p>
{{ $t('user.export.description') }}
</p>
<template v-if="passwordRequired">
<template v-if="isLocalUser">
<p>
{{ $t('user.export.descriptionPasswordRequired') }}
</p>
@ -51,7 +51,7 @@ export default {
}
},
computed: {
passwordRequired() {
isLocalUser() {
return this.$store.state.auth.info?.isLocalUser
},
},
@ -60,7 +60,7 @@ export default {
},
methods: {
async requestDataExport() {
if (this.password === '' && this.passwordRequired) {
if (this.password === '' && this.isLocalUser) {
this.errPasswordRequired = true
this.$refs.passwordInput.focus()
return