fixes spelling error

This commit is contained in:
Keviin Åberg Kultalahti 2021-01-25 13:14:38 +01:00
parent 20e6279ee1
commit 21902aff14
3 changed files with 6 additions and 6 deletions

View File

@ -9,7 +9,7 @@ export const triggerAutomation = async (automationId, fields) => {
body: { fields }, body: { fields },
}) })
res.error res.error
? notificationStore.danger("En error has occured") ? notificationStore.danger("En error has occurred")
: notificationStore.success("Automation triggered") : notificationStore.success("Automation triggered")
return res return res
} }

View File

@ -12,7 +12,7 @@ export const executeQuery = async ({ queryId, parameters }) => {
}, },
}) })
res.error res.error
? notificationStore.danger("En error has occured") ? notificationStore.danger("En error has occurred")
: notificationStore.success("Query successful") : notificationStore.success("Query successful")
return response return response
} }

View File

@ -21,7 +21,7 @@ export const saveRow = async row => {
body: row, body: row,
}) })
res.error res.error
? notificationStore.danger("En error has occured") ? notificationStore.danger("En error has occurred")
: notificationStore.success("Row saved") : notificationStore.success("Row saved")
return res return res
} }
@ -35,7 +35,7 @@ export const updateRow = async row => {
body: row, body: row,
}) })
res.error res.error
? notificationStore.danger("En error has occured") ? notificationStore.danger("En error has occurred")
: notificationStore.success("Row updated") : notificationStore.success("Row updated")
return res return res
} }
@ -48,7 +48,7 @@ export const deleteRow = async ({ tableId, rowId, revId }) => {
url: `/api/${tableId}/rows/${rowId}/${revId}`, url: `/api/${tableId}/rows/${rowId}/${revId}`,
}) })
res.error res.error
? notificationStore.danger("En error has occured") ? notificationStore.danger("En error has occurred")
: notificationStore.success("Row deleted") : notificationStore.success("Row deleted")
return res return res
} }
@ -65,7 +65,7 @@ export const deleteRows = async ({ tableId, rows }) => {
}, },
}) })
res.error res.error
? notificationStore.danger("En error has occured") ? notificationStore.danger("En error has occurred")
: notificationStore.success(`${rows.length} row(s) deleted`) : notificationStore.success(`${rows.length} row(s) deleted`)
return res return res
} }