0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-13 22:41:32 -05:00
ghost/core/client/controllers
Matt Enlow 1421550a06 PostSettingsMenu: Don't save new posts, reset values on failure
Closes #3158, Closes #3143, Closes #3134
- Added `model.rollback()` when PSM fails to save.
- Added `showErrors` and `showSuccess` helper functions to PSM to abstract
  closing and showing of notifications.
- Added `togglePage` action to indirect the setting of `page`.
- Removed `isStaticPage` property in favor of `togglePage` action
- moved `updateSlug` error catching to outer promise (slugGenerator promise)
- modifying the `page` and `published_at` properties will no longer cause a new post to save
- Close passive notifications on published date parse fail
- Removed promise creation in catch statements

- Changed tests to click on label, rather than the input for
  .post-setting-static-page.
2014-07-02 15:29:15 -06:00
..
editor Fix warning about transitionTo being deprecated 2014-06-23 12:14:41 +01:00
modals Remove CSRF from client 2014-07-01 11:39:01 +02:00
posts Persistent notifications 2014-07-01 11:36:21 +02:00
settings Persistent notifications 2014-07-01 11:36:21 +02:00
application.js oAuth 2014-06-30 14:58:10 +02:00
debug.js Remove CSRF from client 2014-07-01 11:39:01 +02:00
error.js Add error template, route and controller 2014-06-24 23:33:02 +01:00
forgotten.js Made ember version of reset password work 2014-06-30 14:37:49 +01:00
post-settings-menu.js PostSettingsMenu: Don't save new posts, reset values on failure 2014-07-02 15:29:15 -06:00
post-tags-input.js Ensure incomplete tags aren't lost on save 2014-06-24 12:14:27 +02:00
posts.js Better handling of validation errors + more documentation 2014-06-30 22:35:03 -04:00
reset.js Made ember version of reset password work 2014-06-30 14:37:49 +01:00
settings.js Hide settings/apps unless apps:true is in config.js 2014-06-23 20:27:51 +01:00
setup.js Merge pull request #3149 from kevinansfield/persistent-notifications 2014-07-01 14:23:38 +01:00
signin.js oAuth 2014-06-30 14:58:10 +02:00
signup.js Merge pull request #3149 from kevinansfield/persistent-notifications 2014-07-01 14:23:38 +01:00