Skip to content

Commit

Permalink
Fix issue where manageBookmarks wasn't take into account in Browse My…
Browse files Browse the repository at this point in the history
… Server

(reference #65)
  • Loading branch information
piotrzarzycki21 committed Nov 20, 2024
1 parent 1bf5d24 commit b04ed1a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ package controller.roles.executeRoles
var loginProxy:ProxyLogin = facade.retrieveProxy(ProxyLogin.NAME) as ProxyLogin;

var browseMyServerMediator:MediatorBrowseMyServer = facade.retrieveMediator(MediatorBrowseMyServer.NAME) as MediatorBrowseMyServer;
browseMyServerMediator.view.editable = loginProxy.user && loginProxy.user.hasRole(Roles.ADMINISTRATOR);
browseMyServerMediator.view.editableBookmarks = loginProxy.user && loginProxy.user.display.manageBookmarks;
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ package interfaces

public interface IBrowseMyServerView extends IResetView
{
function get editable():Boolean;
function set editable(value:Boolean):void;
function get editableBookmarks():Boolean;
function set editableBookmarks(value:Boolean):void;
function get breadcrump():Breadcrump;
function get topMenu():TopMenu;
function get selectedItem():ServerVO;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,17 @@
import org.apache.royale.events.IEventDispatcher;
private var _editable:Boolean;
private var _editableBookmarks:Boolean;
[Bindable]
public function get editable():Boolean
public function get editableBookmarks():Boolean
{
return _editable;
return _editableBookmarks;
}
public function set editable(value:Boolean):void
public function set editableBookmarks(value:Boolean):void
{
_editable = value;
_editableBookmarks = value;
}
private var _selectedItem:ServerVO;
Expand Down Expand Up @@ -214,7 +214,7 @@
<j:Button localId="clientOpen" text="Open in Client" minWidth="130" className="noLinkStyle"/>
<j:Button localId="nomadWebOpen" text="Open in Nomad" minWidth="130" className="noLinkStyle"/>
<j:Button localId="bookmarkAdd" text="Add Bookmark" minWidth="130" className="noLinkStyle"
visible="{editable}" />
visible="{editableBookmarks}" />
<j:VGroup itemsHorizontalAlign="itemsCenter" itemsVerticalAlign="itemsCenter" visible="{selectedItem.hasBookmarks}">
<js:MaterialIcon text="{MaterialIconType.CHECK}">
<js:style>
Expand Down

0 comments on commit b04ed1a

Please sign in to comment.