Fix current password id being available twice

This commit is contained in:
kolaente 2021-04-18 19:42:27 +02:00
parent c9e0c9b6cf
commit 2d4ea80c90
Signed by untrusted user: konrad
GPG Key ID: F40E70337AB24C9B
2 changed files with 3 additions and 3 deletions

View File

@ -106,7 +106,7 @@ export default {
listRoutePrefix() { listRoutePrefix() {
let name = 'list' let name = 'list'
if (this.$route.name.startsWith('list.')) { if (this.$route.name !== null && this.$route.name.startsWith('list.')) {
name = this.$route.name name = this.$route.name
} }

View File

@ -67,12 +67,12 @@
</div> </div>
</div> </div>
<div class="field"> <div class="field">
<label class="label" for="currentPassword">Current Password</label> <label class="label" for="currentPasswordEmail">Current Password</label>
<div class="control"> <div class="control">
<input <input
@keyup.enter="updateEmail" @keyup.enter="updateEmail"
class="input" class="input"
id="currentPassword" id="currentPasswordEmail"
placeholder="Your current password" placeholder="Your current password"
type="password" type="password"
v-model="emailUpdate.password"/> v-model="emailUpdate.password"/>