Skip to content

Commit

Permalink
Fixing snackbar errors not showing
Browse files Browse the repository at this point in the history
  • Loading branch information
kevgliss committed Nov 30, 2023
1 parent 568f49b commit 02d73a4
Show file tree
Hide file tree
Showing 13 changed files with 17 additions and 15 deletions.
8 changes: 4 additions & 4 deletions src/dispatch/static/dispatch/src/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ instance.interceptors.response.use(
"notification_backend/addBeNotification",
{
text: errorText,
type: "error",
type: "exception",
},
{ root: true }
)
Expand All @@ -83,7 +83,7 @@ instance.interceptors.response.use(
"notification_backend/addBeNotification",
{
text: errorText,
type: "error",
type: "exception",
},
{ root: true }
)
Expand All @@ -95,7 +95,7 @@ instance.interceptors.response.use(
"notification_backend/addBeNotification",
{
text: errorText,
type: "error",
type: "exception",
},
{ root: true }
)
Expand All @@ -116,7 +116,7 @@ instance.interceptors.response.use(
"notification_backend/addBeNotification",
{
text: errorText,
type: "error",
type: "exception",
},
{ root: true }
)
Expand Down
2 changes: 1 addition & 1 deletion src/dispatch/static/dispatch/src/case/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ const actions = {
"notification_backend/addBeNotification",
{
text: `Case '${payload.name}' could not be found.`,
type: "error",
type: "exception",
},
{ root: true }
)
Expand Down
2 changes: 1 addition & 1 deletion src/dispatch/static/dispatch/src/components/LockButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ async function updateVisibility() {
"notification_backend/addBeNotification",
{
text: `Failed to update ${props.subjectType} visibility`,
type: "error",
type: "exception",
},
{ root: true }
)
Expand Down
2 changes: 1 addition & 1 deletion src/dispatch/static/dispatch/src/data/query/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ const actions = {
"notification_backend/addBeNotification",
{
text: `Query '${payload.name}' could not be found.`,
type: "error",
type: "exception",
},
{ root: true }
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ const actions = {
"notification_backend/addBeNotification",
{
text: `DataFormat '${payload.name}' could not be found.`,
type: "error",
type: "exception",
},
{ root: true }
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ const actions = {
"notification_backend/addBeNotification",
{
text: `environment '${payload.name}' could not be found.`,
type: "error",
type: "exception",
},
{ root: true }
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ const actions = {
"notification_backend/addBeNotification",
{
text: `status '${payload.name}' could not be found.`,
type: "error",
type: "exception",
},
{ root: true }
)
Expand Down
2 changes: 1 addition & 1 deletion src/dispatch/static/dispatch/src/data/source/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ const actions = {
"notification_backend/addBeNotification",
{
text: `Source '${payload.name}' could not be found.`,
type: "error",
type: "exception",
},
{ root: true }
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ const actions = {
"notification_backend/addBeNotification",
{
text: `transport '${payload.name}' could not be found.`,
type: "error",
type: "exception",
},
{ root: true }
)
Expand Down
2 changes: 1 addition & 1 deletion src/dispatch/static/dispatch/src/data/source/type/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ const actions = {
"notification_backend/addBeNotification",
{
text: `type '${payload.name}' could not be found.`,
type: "error",
type: "exception",
},
{ root: true }
)
Expand Down
2 changes: 1 addition & 1 deletion src/dispatch/static/dispatch/src/incident/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ const actions = {
"notification_backend/addBeNotification",
{
text: `Incident '${payload.name}' could not be found.`,
type: "error",
type: "exception",
},
{ root: true }
)
Expand Down
2 changes: 1 addition & 1 deletion src/dispatch/static/dispatch/src/plugin/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ const actions = {
"notification_backend/addBeNotification",
{
text: "Plugin not installed correctly. Please review the Dispatch logs or contact your Dispatch Administrator",
type: "error",
type: "exception",
},
{ root: true }
)
Expand Down
2 changes: 2 additions & 0 deletions src/dispatch/static/dispatch/src/vuetify/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ export function vuetifyPlugin(app) {
accent: "#8c9eff",
anchor: "#0F0F0F",
error: "#E50914",
exception: "#E50914",
info: "#4969E4",
warning: "#FBA404",
success: "#41B957",
Expand Down Expand Up @@ -98,6 +99,7 @@ export function vuetifyPlugin(app) {
secondary: "#B6B6B7",
accent: "#8c9eff",
error: "#E50914",
exception: "#E50914",
info: "#4969E4",
warning: "#FBA404",
success: "#41B957",
Expand Down

0 comments on commit 02d73a4

Please sign in to comment.