ulozeni dirtree do promene
This commit is contained in:
10
js/view.js
10
js/view.js
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user