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

@@ -206,6 +206,12 @@ define([
}, cb);
};
funcs.isPadStored = function (cb) {
ctx.sframeChan.query("Q_IS_PAD_STORED", null, function (err, obj) {
cb (err || (obj && obj.error), obj);
});
};
funcs.sendAnonRpcMsg = function (msg, content, cb) {
ctx.sframeChan.query('Q_ANON_RPC_MESSAGE', {
msg: msg,