Allow Livechat visitors to switch the department (#6035)
* WIP: allowing visitors to switch to a different department (RocketChat/Rocket.Chat#5998) * Does not make much sense to read the global variable * set the department id when switching * Add confirmation when switching departments * fixed eslint issues * moved switching of department to its own screen * Added option for admin to allow visitors to switch department (default is yes) * fixed eslint * Improve livechat switch department UI/UX
Showing
- packages/rocketchat-i18n/i18n/de-AT.i18n.json 1 addition, 0 deletionspackages/rocketchat-i18n/i18n/de-AT.i18n.json
- packages/rocketchat-i18n/i18n/de.i18n.json 1 addition, 0 deletionspackages/rocketchat-i18n/i18n/de.i18n.json
- packages/rocketchat-i18n/i18n/en.i18n.json 1 addition, 0 deletionspackages/rocketchat-i18n/i18n/en.i18n.json
- packages/rocketchat-livechat/app/client/lib/_livechat.js 14 additions, 0 deletionspackages/rocketchat-livechat/app/client/lib/_livechat.js
- packages/rocketchat-livechat/app/client/views/livechatWindow.html 3 additions, 0 deletions.../rocketchat-livechat/app/client/views/livechatWindow.html
- packages/rocketchat-livechat/app/client/views/livechatWindow.js 4 additions, 1 deletion...es/rocketchat-livechat/app/client/views/livechatWindow.js
- packages/rocketchat-livechat/app/client/views/options.html 3 additions, 0 deletionspackages/rocketchat-livechat/app/client/views/options.html
- packages/rocketchat-livechat/app/client/views/options.js 23 additions, 1 deletionpackages/rocketchat-livechat/app/client/views/options.js
- packages/rocketchat-livechat/app/client/views/switchDepartment.html 21 additions, 0 deletions...ocketchat-livechat/app/client/views/switchDepartment.html
- packages/rocketchat-livechat/app/client/views/switchDepartment.js 75 additions, 0 deletions.../rocketchat-livechat/app/client/views/switchDepartment.js
- packages/rocketchat-livechat/app/i18n/de-AT.i18n.json 3 additions, 1 deletionpackages/rocketchat-livechat/app/i18n/de-AT.i18n.json
- packages/rocketchat-livechat/app/i18n/de.i18n.json 3 additions, 1 deletionpackages/rocketchat-livechat/app/i18n/de.i18n.json
- packages/rocketchat-livechat/app/i18n/en.i18n.json 7 additions, 1 deletionpackages/rocketchat-livechat/app/i18n/en.i18n.json
- packages/rocketchat-livechat/config.js 1 addition, 0 deletionspackages/rocketchat-livechat/config.js
- packages/rocketchat-livechat/package.js 1 addition, 0 deletionspackages/rocketchat-livechat/package.js
- packages/rocketchat-livechat/server/lib/Livechat.js 15 additions, 0 deletionspackages/rocketchat-livechat/server/lib/Livechat.js
- packages/rocketchat-livechat/server/methods/getInitialData.js 2 additions, 0 deletions...ages/rocketchat-livechat/server/methods/getInitialData.js
- packages/rocketchat-livechat/server/methods/setDepartmentForVisitor.js 13 additions, 0 deletions...etchat-livechat/server/methods/setDepartmentForVisitor.js
Loading
Please register or sign in to comment