added publish (git add, git push)
This commit is contained in:
23
js/view.js
23
js/view.js
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user