diff --git a/src/Eagle.ts b/src/Eagle.ts index 517449bd..7576c219 100644 --- a/src/Eagle.ts +++ b/src/Eagle.ts @@ -1618,20 +1618,6 @@ export class Eagle { }); } - /** - * Presents the user with a textarea in which to paste JSON. Reads the JSON and parses it into a palette. - */ - newConfigFromJson = () : void => { - Utils.requestUserText("New Graph Config from JSON", "Enter the JSON below", "", (completed : boolean, userText : string) : void => { - if (!completed) - { // Cancelling action. - return; - } - - this._loadConfigJSON(userText, ""); - }); - } - saveGraph = () : void => { if (this.logicalGraph().fileInfo().repositoryService === Repository.Service.File){ this.saveFileToLocal(Eagle.FileType.Graph); @@ -1683,9 +1669,6 @@ export class Eagle { this.savePaletteToDisk(destinationPalette); break; } - case Eagle.FileType.GraphConfig: - this.saveConfigToDisk(this.graphConfig()); - break; default: Utils.showUserMessage("Not implemented", "Not sure which fileType is the right one to save locally :" + fileType); break; diff --git a/src/KeyboardShortcut.ts b/src/KeyboardShortcut.ts index befadb4f..f77247b8 100644 --- a/src/KeyboardShortcut.ts +++ b/src/KeyboardShortcut.ts @@ -260,7 +260,6 @@ export class KeyboardShortcut { // graph configs new KeyboardShortcut("createNewConfig", "Create New Config", [""], "keydown", KeyboardShortcut.Modifier.None, KeyboardShortcut.true, [], KeyboardShortcut.false, KeyboardShortcut.true, (eagle): void => {eagle.newConfig();}), /* - new KeyboardShortcut("createNewConfigFromJson", "Create New Config From Json", [""], "keydown", KeyboardShortcut.Modifier.None, KeyboardShortcut.true, [], KeyboardShortcut.false, KeyboardShortcut.true, (eagle): void => {eagle.newConfigFromJson();}), new KeyboardShortcut("saveConfig", "Save Config To Git", [""], "keydown", KeyboardShortcut.Modifier.None, KeyboardShortcut.true, [], KeyboardShortcut.false, KeyboardShortcut.true, (eagle): void => {eagle.commitToGit(Eagle.FileType.GraphConfig);}), new KeyboardShortcut("saveConfigAs", "Save Config To Git As", [""], "keydown", KeyboardShortcut.Modifier.None, KeyboardShortcut.true, [], KeyboardShortcut.false, KeyboardShortcut.true, (eagle): void => {eagle.commitToGitAs(Eagle.FileType.GraphConfig);}), new KeyboardShortcut("saveConfigLocally", "Save Config Locally", [""], "keydown", KeyboardShortcut.Modifier.None, KeyboardShortcut.true, [], KeyboardShortcut.false, KeyboardShortcut.true, (eagle): void => {eagle.saveFileToLocal(Eagle.FileType.GraphConfig);}), diff --git a/templates/navbar.html b/templates/navbar.html index f9beff3d..f004d113 100644 --- a/templates/navbar.html +++ b/templates/navbar.html @@ -212,7 +212,6 @@ New