chore: rename passwordRequired variable so it is more clear what it does
All checks were successful
continuous-integration/drone/pr Build is passing
All checks were successful
continuous-integration/drone/pr Build is passing
This commit is contained in:
parent
d2292e047a
commit
bba2293742
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Reference in New Issue
Block a user