ulozeni dirtree do promene

This commit is contained in:
2021-01-09 11:38:15 +01:00
parent f1d269d762
commit f1488f847a
5 changed files with 118 additions and 88 deletions

View File

@@ -53,9 +53,11 @@ class View {
skip += 2;
} else {
if (dirtree[i] != "unmodified") {
li[skip].style.backgroundColor = "red";
li[skip].style.backgroundColor = "#008080";
li[skip].style.color = "white";
} else {
li[skip].style.removeProperty("background-color");
li[skip].style.removeProperty("color");
}
skip += 1;
@@ -138,11 +140,15 @@ class View {
/* ------------------ Publish ------------------ */
openPublish() {
openPublish(changedFiles) {
this.closeDialog();
this.closeEditor();
var publish = document.getElementsByClassName("commitWrapper")[0];
publish.style.display = "grid";
let gitMsg = document.getElementById("inputCommitMsg");
gitMsg.disabled = localStorage.getItem("pushError") == "true";
}
errorPublish(error) {