aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMartin Ridgers <[email protected]>2024-09-19 15:32:32 +0200
committerMartin Ridgers <[email protected]>2024-09-24 10:57:34 +0200
commit8c2a098be5addab967febb8725c1bb28a7f61e6f (patch)
treef6ea835d444d723c3213421cf194effb8c8ff121 /src
parentRemoved commented out code (diff)
downloadzen-8c2a098be5addab967febb8725c1bb28a7f61e6f.tar.xz
zen-8c2a098be5addab967febb8725c1bb28a7f61e6f.zip
Build action cells using toolbars
Diffstat (limited to 'src')
-rw-r--r--src/zenserver/frontend/html/zen.js15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/zenserver/frontend/html/zen.js b/src/zenserver/frontend/html/zen.js
index e9a44bd95..03386f173 100644
--- a/src/zenserver/frontend/html/zen.js
+++ b/src/zenserver/frontend/html/zen.js
@@ -457,7 +457,6 @@ class Project extends Page
var cells = oplog_table.add_row([
name,
- "drop",
]);
var cell = cells[0];
@@ -467,8 +466,8 @@ class Project extends Page
"oplog" : name,
});
- cell = cells.at(-1);
- cell.attr("zen_param", name).on_click((e) => this._on_drop(e));
+ var action_tb = new Toolbar(cells.at(-1), true);
+ action_tb.left().add("drop").attr("zen_param", name).on_click((e) => this._on_drop(e));
}
// files
@@ -636,10 +635,13 @@ class Start extends Page
project.Id,
project.ProjectRootDir,
project.EngineRootDir,
- "drop",
]);
cells[0].link("", {"page" : "project", "project" : project.Id});
+
+ var action_tb = new Toolbar(cells.at(-1), true);
+ action_tb.left().add("view").on_click(() => void(0));
+ action_tb.left().add("drop").on_click(() => this.on_drop());
}
// stats
@@ -657,6 +659,11 @@ class Start extends Page
table.add_property(key, stats[key]);
}
}
+
+ on_drop()
+ {
+ new Modal().title("Confirmation").message("TODO").option("Okay");
+ }
}
////////////////////////////////////////////////////////////////////////////////