1
0
Fork 0
mirror of https://github.com/TryGhost/Ghost-Admin.git synced 2023-12-14 02:33:04 +01:00
Ghost-Admin/app/utils
Kevin Ansfield 690dc9dffb Refactor error handling
closes https://github.com/TryGhost/Ghost/issues/6974
- update "change password" fields/process to use inline validations
- remove `notifications.showErrors` and update all uses of it to `showAPIError`
- display multiple API errors as alerts rather than toaster notifications
- refactor `notifications.showAPIError`
  - remove `notifications.showErrors`, use a loop in `showAPIError` instead
  - properly determine the message from `AjaxError` or `AdapterError` objects
  - determine a unique key if possible so that we don't lose multiple different alerts
- add `ServerUnreachable` error for when we get a status code of 0 (eg, when the ghost service has been shut down)
- simplify error messages for our custom ajax errors
2016-07-08 15:16:54 +01:00
..
bound-one-way.js convert ember imports to ember-cli-shim imports where possible (#95) 2016-06-30 11:21:47 +01:00
caja-sanitizers.js Use es6 across client and add ember-suave to enforce rules 2015-11-30 10:41:01 +00:00
ctrl-or-cmd.js Standardize on var-less export default across ember app 2015-10-06 10:59:50 +01:00
date-formatting.js Rename "offset" to "blogTimezone" 2016-06-08 12:09:19 +01:00
document-title.js convert ember imports to ember-cli-shim imports where possible (#95) 2016-06-30 11:21:47 +01:00
ed-image-manager.js Fix editor image perf and upload bug 2016-05-08 12:55:56 +02:00
editor-shortcuts.js Update package.json details, rename module to ghost-admin 2016-06-03 16:12:54 +01:00
ghost-paths.js deps: ember@2.6.0 2016-06-09 16:58:09 +01:00
isFinite.js Standardize on var-less export default across ember app 2015-10-06 10:59:50 +01:00
isNumber.js Use es6 across client and add ember-suave to enforce rules 2015-11-30 10:41:01 +00:00
link-component.js convert ember imports to ember-cli-shim imports where possible (#95) 2016-06-30 11:21:47 +01:00
random-password.js Use es6 across client and add ember-suave to enforce rules 2015-11-30 10:41:01 +00:00
route.js "400 Version Mismatch" error handling 2016-07-08 14:56:26 +01:00
text-field.js convert ember imports to ember-cli-shim imports where possible (#95) 2016-06-30 11:21:47 +01:00
titleize.js convert ember imports to ember-cli-shim imports where possible (#95) 2016-06-30 11:21:47 +01:00
validator-extensions.js convert ember imports to ember-cli-shim imports where possible (#95) 2016-06-30 11:21:47 +01:00
window-proxy.js Use es6 across client and add ember-suave to enforce rules 2015-11-30 10:41:01 +00:00
word-count.js Drop XRegExp dependency 2016-03-30 19:45:20 +01:00