Resolve "Don't show Delete account window if the user has not enetered a password"

This commit is contained in:
Marcos Peña 2021-11-11 08:54:59 +00:00 committed by Georg Krause
parent a166e71597
commit 1512b0ede3
3 changed files with 11 additions and 2 deletions

View File

@ -0,0 +1 @@
Fixed delete account button is not disalbed when missing password (#1591)

View File

@ -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>

View File

@ -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;
}