Hide the template button if the pad2 is a template

This commit is contained in:
yflory
2017-08-21 18:31:15 +02:00
parent aa9e0d3cd3
commit 20a68ad71c
2 changed files with 4 additions and 130 deletions

View File

@@ -73,7 +73,8 @@ define([
origin: window.location.origin,
pathname: window.location.pathname,
readOnly: readOnly,
availableHashes: hashes
availableHashes: hashes,
isTemplate: Cryptpad.isTemplate(window.location.href)
}
});
});
@@ -137,7 +138,6 @@ define([
Cryptpad.moveToTrash(cb);
});
sframeChan.on('Q_SAVE_AS_TEMPLATE', function (data, cb) {
Cryptpad.saveAsTemplate(Cryptget.put, data, cb);
});