add version chooser icon top right
This commit is contained in:
parent
f334ae797b
commit
094d4ba7c9
4 changed files with 12 additions and 7 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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" }),
|
||||
]),
|
||||
|
|
|
|||
Loading…
Reference in a new issue