added publish (git add, git push)

This commit is contained in:
2021-01-07 22:54:41 +01:00
parent dcfaef47a6
commit 35138ec30b
5 changed files with 159 additions and 21 deletions

View File

@@ -117,13 +117,34 @@ class View {
email.value = localStorage.getItem("email");
}
closeSettings() {
closeDialog() {
var settings = document.getElementsByClassName("settingsbg")[0];
var publish = document.getElementsByClassName("commitWrapper")[0];
settings.style.removeProperty("display");
publish.style.removeProperty("display");
}
openPublish() {
this.closeEditor();
var publish = document.getElementsByClassName("commitWrapper")[0];
publish.style.display = "grid";
}
showSaveButton(show) {
var saveButton = document.getElementById("saveBtn");
saveButton.disabled = show;
}
errorPublish(error) {
let errorDiv = document.getElementById("errorPublish");
if (!error) {
errorDiv.style.removeProperty("display");
return;
}
errorDiv.style.display = "block";
errorDiv.innerHTML = error;
}
}