add tools import button

This commit is contained in:
Stewart Allen 2025-03-07 13:56:18 -05:00
commit f8bf28acdd
4 changed files with 4 additions and 1 deletions

View file

@ -86,7 +86,7 @@ Then open a browser to [localhost:8080/kiri](http://localhost:8080/kiri)
# Windows Developers
this git repo requires symbolic link support. on Windows, this means you have to clone the repo in a command shell with Administrator privileges.
Follow the instructions in [this issue comment](https://github.com/GridSpace/grid-apps/issues/331#issuecomment-2692492302).
# Javascript Slicing APIs

View file

@ -287,6 +287,7 @@ gapp.register("kiri-mode.cam.tools", (root, exports) => {
api.event.settings();
api.settings.sync.put();
};
ui.toolsImport.onclick = (ev) => api.event.import(ev);
ui.toolsExport.onclick = () => {
uc.prompt("Export Tools Filename", "tools").then(name => {
if (!name) {

View file

@ -932,6 +932,7 @@ gapp.register("kiri.init", (root, exports) => {
toolsSave: $('tools-save'),
toolsClose: $('tools-close'),
toolsImport: $('tools-import'),
toolsExport: $('tools-export'),
toolSelect: $('tool-select'),
toolAdd: $('tool-add'),

View file

@ -585,6 +585,7 @@
<button id="tools-close" lk="done">done</button>
</div>
<div class="f-row">
<button id="tools-import" lk="import">import</button>
<button id="tools-export" lk="export">export</button>
</div>
</div>