Browse Source

some more typo fixes

gh-pages
Keviin Åberg Kultalahti 6 years ago
parent
commit
f88368260d
  1. 8
      packages/client/src/api/rows.js

8
packages/client/src/api/rows.js

@ -21,7 +21,7 @@ export const saveRow = async row => {
body: row, body: row,
}) })
res.error res.error
? notificationStore.danger("En error has occurred") ? notificationStore.danger("An 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 occurred") ? notificationStore.danger("An 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 occurred") ? notificationStore.danger("An 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 occurred") ? notificationStore.danger("An error has occurred")
: notificationStore.success(`${rows.length} row(s) deleted`) : notificationStore.success(`${rows.length} row(s) deleted`)
return res return res
} }

Loading…
Cancel
Save