Commit ac7cd5b2 authored by Ivanq's avatar Ivanq

Repo: Add isSignable()

parent a40d55f7
......@@ -7,6 +7,10 @@ class Repository {
this.zeroDB = new ZeroDB(zeroPage);
}
isSignable() {
return this.zeroPage.isSignable("merged-GitCenter/" + this.address + "/content.json");
}
// Permission actions
addMerger() {
let siteInfo, list;
......
......@@ -28,7 +28,7 @@ function showTabs(level) {
"?" + address
);
zeroPage.isSignable("merged-GitCenter/" + address + "/content.json")
repo.isSignable()
.then(signable => {
if(signable) {
document.getElementById("settings_link").style.display = "inline-block";
......@@ -46,7 +46,7 @@ function showHeader(level, gitAddress) {
};
let publish = document.getElementById("publish");
zeroPage.isSignable("merged-GitCenter/" + address + "/content.json")
repo.isSignable()
.then(signable => {
if(signable) {
publish.style.display = "inline-block";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment