Skip to content

Commit

Permalink
Fix reading from config nomad_helper_url field
Browse files Browse the repository at this point in the history
- Fix click on Open in Nomad button in Browse My Server (reference #53)
  • Loading branch information
piotrzarzycki21 committed Apr 22, 2024
1 parent 33a78da commit 33bf4d6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ package controller
override public function execute(note:INotification):void
{
var loginProxy:ProxyLogin = facade.retrieveProxy(ProxyLogin.NAME) as ProxyLogin;
var nomadHelperUrl:String = loginProxy.config.nomad_helper_url;
var nomadHelperUrl:String = loginProxy.config.config.nomad_helper_url;
var link:String = note.getBody().link;

if (nomadHelperUrl)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ package mediator.bookmarks
this.view.topMenu.addEventListener(TopMenuEvent.MENU_LOADED, onTopMenuItemChange);
this.view.topMenu.addEventListener(TopMenuEvent.MENU_ITEM_CHANGE, onTopMenuItemChange);
this.view.addBookmark.addEventListener(MouseEvent.CLICK, onAddBookmarkClick);
this.view.openNomadWeb.addEventListener(MouseEvent.CLICK, onOpenNomadWeb);
this.view.copyToClipboardServer.addEventListener(MouseEvent.CLICK, onCopyToClipboardServer);
this.view.copyToClipboardDatabase.addEventListener(MouseEvent.CLICK, onCopyToClipboardDatabase);
this.view.copyToClipboardReplica.addEventListener(MouseEvent.CLICK, onCopyToClipboardReplica);
Expand All @@ -65,6 +66,7 @@ package mediator.bookmarks
this.view.topMenu.removeEventListener(TopMenuEvent.MENU_LOADED, onTopMenuItemChange);
this.view.topMenu.removeEventListener(TopMenuEvent.MENU_ITEM_CHANGE, onTopMenuItemChange);
this.view.addBookmark.removeEventListener(MouseEvent.CLICK, onAddBookmarkClick);
this.view.openNomadWeb.removeEventListener(MouseEvent.CLICK, onOpenNomadWeb);
this.view.copyToClipboardServer.removeEventListener(MouseEvent.CLICK, onCopyToClipboardServer);
this.view.copyToClipboardDatabase.removeEventListener(MouseEvent.CLICK, onCopyToClipboardDatabase);
this.view.copyToClipboardReplica.removeEventListener(MouseEvent.CLICK, onCopyToClipboardReplica);
Expand Down

0 comments on commit 33bf4d6

Please sign in to comment.