add version chooser icon top right

This commit is contained in:
Stewart Allen 2022-02-25 14:06:28 -05:00
commit 094d4ba7c9
4 changed files with 12 additions and 7 deletions

View file

@ -540,6 +540,10 @@ const api = exports({
window.open("https://docs.grid.space/projects/mesh-tool");
},
version() {
window.location = "/choose";
},
clear() {
for (let group of group.list()) {
group.remove(group);

View file

@ -226,6 +226,9 @@ function ui_build() {
// add a help button
h.bind($('top-right'), [
h.div({ id: "top-version", onclick: api.version }, [
h.div({ class: "fas fa-hashtag" }),
]),
h.div({ id: "top-settings", onclick: api.settings }, [
h.div({ class: "fas fa-sliders-h" }),
]),