Skip to content
Snippets Groups Projects
Commit 1512b0ed authored by Marcos Peña's avatar Marcos Peña Committed by Georg Krause
Browse files

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

parent a166e715
No related branches found
No related tags found
No related merge requests found
Fixed delete account button is not disalbed when missing password (#1591)
...@@ -328,7 +328,7 @@ ...@@ -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 { ...@@ -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;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment