Skip to content

Commit

Permalink
Revert back showing/hiding Bookmarks
Browse files Browse the repository at this point in the history
(reference #65)
  • Loading branch information
piotrzarzycki21 committed Nov 14, 2024
1 parent 2b395ea commit 4f84696
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,11 @@ package controller
import org.apache.royale.collections.ArrayList;
import org.puremvc.as3.multicore.interfaces.INotification;
import org.puremvc.as3.multicore.patterns.command.SimpleCommand;
import model.proxy.login.ProxyLogin;

public class CommandRefreshNavigationBookmarks extends SimpleCommand
{
override public function execute(note:INotification):void
{
var loginProxy:ProxyLogin = facade.retrieveProxy(ProxyLogin.NAME) as ProxyLogin;
if (loginProxy.user.display && !loginProxy.user.display.viewBookmarks)
{
return;
}

var bookmarks:Array = note.getBody() as Array;

var mainMediator:MediatorMainContentView = facade.retrieveMediator(MediatorMainContentView.NAME) as MediatorMainContentView;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,17 +64,6 @@ package controller.roles.executeRoles
}
}
}

if (!loginProxy.user.display.viewBookmarks)
{
for (k = mainContentModel.customBookmarks.length - 1; k >= 0; k--)
{
navItem = mainContentModel.customBookmarks.getItemAt(k) as NavigationLinkVO;
if (navItem.idSelectedItem == "bookmarksList") {
mainContentModel.customBookmarks.removeItemAt(k);
}
}
}
}
}
}
Expand Down

0 comments on commit 4f84696

Please sign in to comment.