From ba5072c02ebb1171178d2ff6c646cb8fb2deadb1 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Sun, 24 Dec 2017 07:33:31 +0300 Subject: [PATCH] some tweaking... Signed-off-by: Alex A. Naanou --- ui (gen4)/features/collections.js | 7 ++++++- ui (gen4)/features/ui-widgets.js | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ui (gen4)/features/collections.js b/ui (gen4)/features/collections.js index 97d95d1e..f191c39d 100755 --- a/ui (gen4)/features/collections.js +++ b/ui (gen4)/features/collections.js @@ -774,8 +774,13 @@ var CollectionActions = actions.Actions({ // aliases... // + // XXX this may show up as a dialog, to disable this just add + // __dialog__: false to attrs... loadMainCollection: ['Collections/Exit collection view', - {browseMode: 'uncollect'}, + { + browseMode: 'uncollect', + __dialog__: false, + }, `loadCollection: "${MAIN_COLLECTION_TITLE}"`], diff --git a/ui (gen4)/features/ui-widgets.js b/ui (gen4)/features/ui-widgets.js index ea157995..5753b993 100755 --- a/ui (gen4)/features/ui-widgets.js +++ b/ui (gen4)/features/ui-widgets.js @@ -837,7 +837,7 @@ var DialogsActions = actions.Actions({ + (/^- .*$/.test(doc) ? ' (disabled)' : '')) .replace(/^-?[0-9]+\s*:\s*/, '') .trim() - make(txt) + make(txt == '*' ? `${dialog} (${txt})` : txt) .on('open', function(){ actions[dialog]() })