Ask the user before loading the template picker

This commit is contained in:
yflory
2017-09-08 16:21:12 +02:00
parent 684a12ce2e
commit fc069dac48
5 changed files with 37 additions and 19 deletions

View File

@@ -297,6 +297,10 @@ define([
sframeChan.on('Q_TEMPLATE_USE', function (href, cb) {
Cryptpad.useTemplate(href, Cryptget, cb);
});
sframeChan.on('Q_TEMPLATE_EXIST', function (type, cb) {
var hasTemplate = Cryptpad.listTemplates(type).length > 0;
cb(hasTemplate);
});
CpNfOuter.start({
sframeChan: sframeChan,