prep for sub menu
This commit is contained in:
1 parent
c5a0997c11
commit
3f951e75d9
1 file changed
+10
-2
@@ -58,6 +58,11 @@ DetailAssistant.prototype.setup = function() {
|
||||
{ label: 'Back', icon: 'back', command: 'do-goBack' }
|
||||
]
|
||||
},
|
||||
{
|
||||
items: [
|
||||
{ label: 'Share', command: 'do-share' }
|
||||
]
|
||||
},
|
||||
{
|
||||
items: [
|
||||
{ label: 'Save', icon: 'save', command: 'do-save' },
|
||||
@@ -65,8 +70,6 @@ DetailAssistant.prototype.setup = function() {
|
||||
}
|
||||
]
|
||||
};
|
||||
if (appModel.LastShareSelected.contenttype.indexOf("image") == -1)
|
||||
this.cmdMenuModel.items[1].items.push({ label: 'Copy', iconPath: 'images/copy.png', command: 'do-copy' });
|
||||
|
||||
this.controller.setupWidget(Mojo.Menu.commandMenu, this.cmdMenuAttributes, this.cmdMenuModel);
|
||||
|
||||
@@ -146,6 +149,11 @@ DetailAssistant.prototype.handleCommand = function(event) {
|
||||
stageController.setClipboard(appModel.LastShareSelected.content);
|
||||
Mojo.Controller.getAppController().showBanner("Content copied!", { source: 'notification' });
|
||||
break;
|
||||
case 'do-share':
|
||||
//TODO: Pop-up share menu
|
||||
//if (appModel.LastShareSelected.contenttype.indexOf("image") == -1)
|
||||
// this.cmdMenuModel.items[2].items.push({ label: 'Copy', iconPath: 'images/copy.png', command: 'do-copy' });
|
||||
break;
|
||||
case 'do-save':
|
||||
var usePath = "sharespace/" + appModel.AppSettingsCurrent["Username"];
|
||||
if (appModel.AppSettingsCurrent["UseCustomDownloadPath"] && appModel.AppSettingsCurrent["CustomDownloadPath"] != "")
|
||||
|
||||
Reference in new issue
Block a user