Merge pull request #1455 from gradido/538-Unify-all-buttons

538 unify all buttons
This commit is contained in:
Alexander Friedland 2022-02-11 17:06:21 +01:00 committed by GitHub
commit c4942799b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 3 deletions

View File

@ -48,7 +48,7 @@
<b-col>
<div class="text-right" ref="submitButton">
<b-button
:variant="loading ? 'default' : 'success'"
:variant="loading ? 'light' : 'success'"
@click="onSubmit"
type="submit"
class="mt-4"

View File

@ -31,7 +31,12 @@
<b-row class="text-right">
<b-col>
<div class="text-right">
<b-button type="submit" variant="primary" class="mt-4">
<b-button
type="submit"
:variant="disabled ? 'light' : 'success'"
class="mt-4"
:disabled="disabled"
>
{{ $t('form.save') }}
</b-button>
</div>
@ -92,6 +97,14 @@ export default {
})
},
},
computed: {
disabled() {
return !(
this.form.newPassword.password !== '' &&
this.form.newPassword.password === this.form.newPassword.passwordRepeat
)
},
},
}
</script>
<style>

View File

@ -44,7 +44,7 @@
<b-col>
<div class="text-right" ref="submitButton">
<b-button
:variant="loading ? 'default' : 'success'"
:variant="loading ? 'light' : 'success'"
type="submit"
class="mt-4"
:disabled="loading"