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" />
|
||||
</div>
|
||||
<dangerous-button
|
||||
:class="['ui', {'loading': isDeletingAccount}, {disabled: !password}, 'danger', 'button']"
|
||||
:class="['ui', {'loading': isDeletingAccount}, {disabled: !password}, {danger: password}, 'button']"
|
||||
:action="deleteAccount">
|
||||
<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>
|
||||
|
|
|
@ -92,10 +92,18 @@ button.reset {
|
|||
margin-right: 0;
|
||||
}
|
||||
|
||||
|
||||
.ui.inverted.buttons .button:hover,
|
||||
.ui.inverted.button:hover,
|
||||
.ui.inverted.buttons .button:focus,
|
||||
.ui.inverted.button:focus {
|
||||
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