Skip to content

Commit

Permalink
#284: updated menus.
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Mulholland committed Apr 26, 2018
1 parent 214e7cf commit 7928385
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
11 changes: 9 additions & 2 deletions src/main/menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -395,13 +395,20 @@ class AppMenu {

buildOpenDataPackageMenu() {
this.openDataPackageSubMenu = [{
label: 'Zip File...',
label: 'zip from URL....',
enabled: true,
click() {
// downloadDataPackageJson()
showUrlDialog()
}
}, {
label: 'zip from file...',
enabled: true,
click() {
importDataPackage()
}
}, {
label: 'URL...',
label: 'json from URL...',
enabled: true,
click() {
// downloadDataPackageJson()
Expand Down
2 changes: 1 addition & 1 deletion src/main/url.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ tmp.setGracefulCleanup()

// TODO: handle errors by rejecting promises and throwing back up stack
export function showUrlDialog() {
let labels = ['Zip File...', 'URL...']
let labels = ['zip from URL....', 'zip from file...', 'json from URL...']
let menu = getSubMenuFromMenu('File', 'Open Data Package')
disableSubMenuItemsFromMenuObject(menu, labels)
let browserWindow = focusOrNewSecondaryWindow('urldialog', {width: 300, height: 150, modal: true, alwaysOnTop: true})
Expand Down

0 comments on commit 7928385

Please sign in to comment.