diff --git a/Super.Human.Portal_Royale/src/net/apacheRoyaleTemplatedApp/mediator/bookmarks/MediatorBookmarks.as b/Super.Human.Portal_Royale/src/net/apacheRoyaleTemplatedApp/mediator/bookmarks/MediatorBookmarks.as index 2b23afc..9ac57e4 100644 --- a/Super.Human.Portal_Royale/src/net/apacheRoyaleTemplatedApp/mediator/bookmarks/MediatorBookmarks.as +++ b/Super.Human.Portal_Royale/src/net/apacheRoyaleTemplatedApp/mediator/bookmarks/MediatorBookmarks.as @@ -79,6 +79,9 @@ package mediator.bookmarks this.updateListOfBookmarks(); this.bookmarksProxy.selectedBookmark = null; break; + case ProxyBookmarks.NOTE_BOOKMARK_DELETE_FAILED: + sendNotification(ApplicationConstants.COMMAND_SHOW_POPUP, new PopupVO(PopupType.ERROR, this.getMediatorName(), String(note.getBody()))); + break; } } diff --git a/Super.Human.Portal_Royale/src/net/apacheRoyaleTemplatedApp/mediator/bookmarks/MediatorEditBookmark.as b/Super.Human.Portal_Royale/src/net/apacheRoyaleTemplatedApp/mediator/bookmarks/MediatorEditBookmark.as index 7ff6b2c..f64951b 100644 --- a/Super.Human.Portal_Royale/src/net/apacheRoyaleTemplatedApp/mediator/bookmarks/MediatorEditBookmark.as +++ b/Super.Human.Portal_Royale/src/net/apacheRoyaleTemplatedApp/mediator/bookmarks/MediatorEditBookmark.as @@ -14,6 +14,8 @@ package mediator.bookmarks import org.puremvc.as3.multicore.patterns.mediator.Mediator; import view.bookmarks.event.BookmarkEvent; + import constants.PopupType; + import model.vo.PopupVO; public class MediatorEditBookmark extends Mediator implements IMediator { @@ -70,9 +72,6 @@ package mediator.bookmarks { case ProxyBookmarks.NOTE_BOOKMARK_CREATE_SUCCESS: this.bookmarksProxy.getCustomBookmarksList(); - break; - case ProxyBookmarks.NOTE_BOOKMARK_CREATE_FAILED: - break; case ProxyBookmarks.NOTE_BOOKMARK_UPDATE_SUCCESS: sendNotification(ApplicationConstants.NOTE_OPEN_SELECTED_BOOKMARK_GROUP, this.bookmarksProxy.selectedGroup); @@ -80,6 +79,10 @@ package mediator.bookmarks case ProxyBookmarks.NOTE_CUSTOM_BOOKMARKS_LIST_FETCHED: sendNotification(ApplicationConstants.NOTE_OPEN_SELECTED_BOOKMARK_GROUP, this.bookmarksProxy.selectedGroup); break; + case ProxyBookmarks.NOTE_BOOKMARK_CREATE_FAILED: + case ProxyBookmarks.NOTE_BOOKMARK_UPDATE_FAILED: + sendNotification(ApplicationConstants.COMMAND_SHOW_POPUP, new PopupVO(PopupType.ERROR, this.getMediatorName(), String(note.getBody()))); + break; } }