some tweaking...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2017-12-24 07:33:31 +03:00
parent a0f08b9531
commit ba5072c02e
2 changed files with 7 additions and 2 deletions

View File

@ -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}"`],

View File

@ -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]()
})