Skip to content

Commit

Permalink
Removed some of the load/save config options from the navbar menus
Browse files Browse the repository at this point in the history
  • Loading branch information
james-strauss-uwa committed Aug 12, 2024
1 parent fa1e3c3 commit aabd99a
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 19 deletions.
17 changes: 0 additions & 17 deletions src/Eagle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion src/KeyboardShortcut.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);}),
Expand Down
1 change: 0 additions & 1 deletion templates/navbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,6 @@
<span class="dropdown-item dropDropDownParent" href="#">New<img src="/static/assets/img/arrow_right_white_24dp.svg" alt="">
<div class="dropDropDown">
<a class="dropdown-item" id="createNewConfig" href="#" data-bind="click: newConfig">Create</a>
<a class="dropdown-item" id="createNewConfigFromJson" href="#" data-bind="click: newConfigFromJson">Create From Json</a>
</div>
</span>
<div class="dropdown-divider"></div>
Expand Down

0 comments on commit aabd99a

Please sign in to comment.