mirror of
https://github.com/Mibew/mibew.git
synced 2024-11-15 16:44:11 +03:00
Generate links for Users JS App in the controller
This commit is contained in:
parent
f8bd639f39
commit
6ceecb42aa
@ -55,6 +55,10 @@ class UsersController extends AbstractController
|
||||
$page['agentId'] = $operator['operatorid'];
|
||||
$page['geoLink'] = Settings::get('geolink');
|
||||
$page['geoWindowParams'] = Settings::get('geolinkparams');
|
||||
$page['trackedLink'] = $request->getBaseUrl() . '/operator/history/user-track';
|
||||
$page['banLink'] = $request->getBaseUrl() . '/operator/ban';
|
||||
$page['inviteLink'] = $request->getBaseUrl() . '/operator/invite';
|
||||
$page['agentLink'] = $request->getBaseUrl() . '/operator/chat';
|
||||
|
||||
// Load dialogs style options
|
||||
$chat_style = new ChatStyle(ChatStyle::getCurrentStyle());
|
||||
|
@ -98,11 +98,11 @@
|
||||
threadTag: "{{[coreStyles.threadTag]}}",
|
||||
visitorTag: "{{[coreStyles.visitorTag]}}",
|
||||
|
||||
agentLink: "{{mibewRoot}}/operator/chat",
|
||||
agentLink: "{{agentLink}}",
|
||||
geoLink: "{{geoLink}}",
|
||||
trackedLink: "{{mibewRoot}}/operator/history/user-track",
|
||||
banLink: "{{mibewRoot}}/operator/ban",
|
||||
inviteLink: "{{mibewRoot}}/operator/invite",
|
||||
trackedLink: "{{trackedLink}}",
|
||||
banLink: "{{banLink}}",
|
||||
inviteLink: "{{inviteLink}}",
|
||||
|
||||
chatWindowParams: "{{[chatStyles.chatWindowParams]}}",
|
||||
geoWindowParams: "{{geoWindowParams}}",
|
||||
|
Loading…
Reference in New Issue
Block a user