Hide the template button if the pad2 is a template
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user