Skip to content

Commit

Permalink
Merge pull request #790 from eddieferrer/color_change
Browse files Browse the repository at this point in the history
feat: change danger background color
  • Loading branch information
eddieferrer authored Apr 26, 2024
2 parents cad8962 + 41d386c commit 3ec0bd6
Show file tree
Hide file tree
Showing 12 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion frontend/components/ChangePasswordForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<form @submit.prevent="resetPassword">
<div v-if="password_change_error.general" class="columns">
<div class="column">
<div class="level box is-marginless has-background-danger">
<div class="level box is-marginless has-background-danger-dark">
<span class="message">{{
password_change_error.general | capitalize
}}</span>
Expand Down
2 changes: 1 addition & 1 deletion frontend/components/ChangePasswordModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<section class="modal-card-body">
<div v-if="formErrors && showAlert" class="columns">
<div class="column">
<div class="level box is-marginless has-background-danger">
<div class="level box is-marginless has-background-danger-dark">
<span class="has-text-white"
>There was an error changing your password.</span
>
Expand Down
2 changes: 1 addition & 1 deletion frontend/components/EditUserDetailsModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<section class="modal-card-body">
<div v-if="formErrors && showAlert" class="columns">
<div class="column">
<div class="level box is-marginless has-background-danger">
<div class="level box is-marginless has-background-danger-dark">
<span class="has-text-white"
>There was an error changing your account details.</span
>
Expand Down
2 changes: 1 addition & 1 deletion frontend/components/FacebookAccountRedirect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<div class="column">
<div
v-if="fb_login_error != ''"
class="level box is-marginless has-background-danger"
class="level box is-marginless has-background-danger-dark"
>
<span class="has-text-white">{{ fb_login_error | capitalize }}</span>
</div>
Expand Down
4 changes: 2 additions & 2 deletions frontend/components/FlashMessage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@ export default {
let flashClass = '';
if (this.getParameterByName('deleted')) {
flashClass = 'has-background-danger';
flashClass = 'has-background-danger-dark';
message = 'Your account has been deleted.';
}
if (this.getParameterByName('changed')) {
flashClass = 'has-background-success';
message = 'Account details changed. This is your new profile page.';
}
if (this.getParameterByName('loginagain')) {
flashClass = 'has-background-danger';
flashClass = 'has-background-danger-dark';
message = 'Please login again.';
}
Expand Down
2 changes: 1 addition & 1 deletion frontend/components/ItemListFiltersServer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,7 @@ export default {
})
.catch(() => {
this.$store.dispatch('SHOW_FLASH_MESSAGE', {
class: 'has-background-danger',
class: 'has-background-danger-dark',
message:
'There has been a fatal server error. Please reload the page.',
});
Expand Down
2 changes: 1 addition & 1 deletion frontend/components/ItemListServer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ export default {
})
.catch((error) => {
this.$store.dispatch('SHOW_FLASH_MESSAGE', {
class: 'has-background-danger',
class: 'has-background-danger-dark',
message: error,
});
this.componentState = 'error';
Expand Down
2 changes: 1 addition & 1 deletion frontend/components/LoginForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
</p>
<div v-if="login_error" class="columns">
<div class="column">
<div class="level box is-marginless has-background-danger">
<div class="level box is-marginless has-background-danger-dark">
<span class="message">{{ login_error | capitalize }}</span>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion frontend/components/RegistrationForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</p>
<div v-if="registration_error" class="columns">
<div class="column">
<div class="level box is-marginless has-background-danger">
<div class="level box is-marginless has-background-danger-dark">
<span class="message">{{ registration_error | capitalize }}</span>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion frontend/pages/match.vue
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ export default {
this.componentState = 'error';
// show error if params missing
this.$store.dispatch('SHOW_FLASH_MESSAGE', {
class: 'has-background-danger',
class: 'has-background-danger-dark',
message:
'There has been an error. Please restart the process to find a match.',
});
Expand Down
2 changes: 1 addition & 1 deletion frontend/pages/public_match.vue
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ export default {
this.componentState = 'error';
// show error if params missing
this.$store.dispatch('SHOW_FLASH_MESSAGE', {
class: 'has-background-danger',
class: 'has-background-danger-dark',
message:
'There has been an error. Please restart the process to find a match.',
});
Expand Down
2 changes: 1 addition & 1 deletion frontend/plugins/axios.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default function ({ $axios, redirect, store, $cookies }) {
// If these exist vue template handles error
if (!errorMessage || !errorMessageFeedback) {
store.dispatch('SHOW_FLASH_MESSAGE', {
class: 'has-background-danger',
class: 'has-background-danger-dark',
message:
'There has been a fatal server error. Please reload the page.',
});
Expand Down

0 comments on commit 3ec0bd6

Please sign in to comment.