Skip to content

Commit

Permalink
fixes (#37)
Browse files Browse the repository at this point in the history
* fix: SWP-1172 theme settings switch

* add: SWP-1160 remove route error message
  • Loading branch information
tomaszrondio authored and takeit committed Jun 6, 2018
1 parent 6edab19 commit d720af6
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions client/controllers/WebPublisherManagerController.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,13 @@ export function WebPublisherManagerController($scope, publisher, modal, privileg
* @description Deleting route
*/
deleteRoute(id) {
modal.confirm(gettext('Please confirm you want to delete route.')).then(
() => publisher.removeRoute(id).then(this._refreshRoutes));
modal.confirm(gettext('Please confirm you want to delete route.')).then(() =>
publisher.removeRoute(id)
.then(this._refreshRoutes))
.catch(err => {
let message = err.data.message ? err.data.message : 'Something went wrong. Try again.';
modal.confirm(message);
});
}

/**
Expand Down

0 comments on commit d720af6

Please sign in to comment.