From b07248ad423bed8a7f781d6c45d9112014100d35 Mon Sep 17 00:00:00 2001 From: ansuz Date: Thu, 30 Mar 2017 18:52:05 +0200 Subject: [PATCH] prompt with setName if name is unset --- www/whiteboard/main.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/www/whiteboard/main.js b/www/whiteboard/main.js index 26eabfa88..66cc01b56 100644 --- a/www/whiteboard/main.js +++ b/www/whiteboard/main.js @@ -171,9 +171,11 @@ define([ common: Cryptpad }; if (readOnly) {delete config.changeNameID; } + toolbar = module.toolbar = Toolbar.create($bar, info.myID, info.realtime, info.getLag, userList, config); var $rightside = $bar.find('.' + Toolbar.constants.rightside); + module.$userNameButton = $($bar.find('.' + Toolbar.constants.changeUsername)); var $export = Cryptpad.createButton('export', true, {}, saveImage); $rightside.append($export); @@ -192,6 +194,8 @@ define([ editHash = Cryptpad.getEditHashFromKeys(info.channel, secret.keys); } if (!readOnly) { Cryptpad.replaceHash(editHash); } + + Cryptpad.onDisplayNameChanged(setName); }; // used for debugging, feel free to remove