added indicator to let the user know to save
This commit is contained in:
parent
569f9b62a8
commit
43c13eae71
2 changed files with 6 additions and 0 deletions
|
@ -700,6 +700,9 @@ function submitEditNode(node) {
|
||||||
node.meta.var3 = var3Input.value;
|
node.meta.var3 = var3Input.value;
|
||||||
node.fixType();
|
node.fixType();
|
||||||
node.resize(_diagram.ctx);
|
node.resize(_diagram.ctx);
|
||||||
|
var saveWatchButton = document.getElementById("saveButtonMain");
|
||||||
|
saveWatchButton.classList.remove("btn-primary");
|
||||||
|
saveWatchButton.classList.add("btn-danger");
|
||||||
}
|
}
|
||||||
function saveWatch() {
|
function saveWatch() {
|
||||||
var e_3, _a, e_4, _b;
|
var e_3, _a, e_4, _b;
|
||||||
|
|
|
@ -701,6 +701,9 @@ function submitEditNode(node: DiagramNode){
|
||||||
|
|
||||||
node.fixType();
|
node.fixType();
|
||||||
node.resize(_diagram.ctx);
|
node.resize(_diagram.ctx);
|
||||||
|
let saveWatchButton = document.getElementById("saveButtonMain") as HTMLButtonElement;
|
||||||
|
saveWatchButton.classList.remove("btn-primary");
|
||||||
|
saveWatchButton.classList.add("btn-danger");
|
||||||
}
|
}
|
||||||
|
|
||||||
function saveWatch(){
|
function saveWatch(){
|
||||||
|
|
Loading…
Add table
Reference in a new issue