Resolve "Don't show Delete account window if the user has not enetered a password"
This commit is contained in:
parent
a166e71597
commit
1512b0ede3
|
@ -0,0 +1 @@
|
||||||
|
Fixed delete account button is not disalbed when missing password (#1591)
|
|
@ -328,7 +328,7 @@
|
||||||
<password-input field-id="current-password-field" required v-model="password" />
|
<password-input field-id="current-password-field" required v-model="password" />
|
||||||
</div>
|
</div>
|
||||||
<dangerous-button
|
<dangerous-button
|
||||||
:class="['ui', {'loading': isDeletingAccount}, {disabled: !password}, 'danger', 'button']"
|
:class="['ui', {'loading': isDeletingAccount}, {disabled: !password}, {danger: password}, 'button']"
|
||||||
:action="deleteAccount">
|
:action="deleteAccount">
|
||||||
<translate translate-context="*/*/Button.Label">Delete my account…</translate>
|
<translate translate-context="*/*/Button.Label">Delete my account…</translate>
|
||||||
<p slot="modal-header"><translate translate-context="Popup/Settings/Title">Do you want to delete your account?</translate></p>
|
<p slot="modal-header"><translate translate-context="Popup/Settings/Title">Do you want to delete your account?</translate></p>
|
||||||
|
|
|
@ -92,10 +92,18 @@ button.reset {
|
||||||
margin-right: 0;
|
margin-right: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.ui.inverted.buttons .button:hover,
|
.ui.inverted.buttons .button:hover,
|
||||||
.ui.inverted.button:hover,
|
.ui.inverted.button:hover,
|
||||||
.ui.inverted.buttons .button:focus,
|
.ui.inverted.buttons .button:focus,
|
||||||
.ui.inverted.button:focus {
|
.ui.inverted.button:focus {
|
||||||
color: white;
|
color: white;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.ui.button:disabled, .ui.buttons .disabled.button:not(.basic), .ui.disabled.active.button, .ui.disabled.button, .ui.disabled.button:hover {
|
||||||
|
cursor: default;
|
||||||
|
opacity: .45 !important;
|
||||||
|
background-image: none;
|
||||||
|
-webkit-box-shadow: none;
|
||||||
|
box-shadow: none;
|
||||||
|
pointer-events: none !important;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue