You've already forked AstralRinth
forked from didirus/AstralRinth
Disable save & remove password button when no input password. (#1387)
This commit is contained in:
@@ -92,7 +92,12 @@
|
|||||||
Cancel
|
Cancel
|
||||||
</button>
|
</button>
|
||||||
<template v-if="removePasswordMode">
|
<template v-if="removePasswordMode">
|
||||||
<button type="button" class="iconified-button danger-button" @click="savePassword">
|
<button
|
||||||
|
type="button"
|
||||||
|
class="iconified-button danger-button"
|
||||||
|
:disabled="!oldPassword"
|
||||||
|
@click="savePassword"
|
||||||
|
>
|
||||||
<TrashIcon />
|
<TrashIcon />
|
||||||
Remove password
|
Remove password
|
||||||
</button>
|
</button>
|
||||||
@@ -107,7 +112,16 @@
|
|||||||
<TrashIcon />
|
<TrashIcon />
|
||||||
Remove password
|
Remove password
|
||||||
</button>
|
</button>
|
||||||
<button type="button" class="iconified-button brand-button" @click="savePassword">
|
<button
|
||||||
|
type="button"
|
||||||
|
class="iconified-button brand-button"
|
||||||
|
:disabled="
|
||||||
|
newPassword.length == 0 ||
|
||||||
|
oldPassword.length == 0 ||
|
||||||
|
newPassword !== confirmNewPassword
|
||||||
|
"
|
||||||
|
@click="savePassword"
|
||||||
|
>
|
||||||
<SaveIcon />
|
<SaveIcon />
|
||||||
Save password
|
Save password
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
Reference in New Issue
Block a user