Disable some toolbar features not available if the pad is not stored

This commit is contained in:
yflory
2018-08-28 12:12:47 +02:00
parent 9ebb598467
commit d201e9a0cd
6 changed files with 54 additions and 23 deletions

View File

@@ -373,6 +373,11 @@ define([
cb(err);
});
});
sframeChan.on('Q_IS_PAD_STORED', function (data, cb) {
Cryptpad.getPadAttribute('title', function (err, data) {
cb (!err && typeof (data) === "string");
});
});
sframeChan.on('Q_SETTINGS_SET_DISPLAY_NAME', function (newName, cb) {