mirror of
https://github.com/Mibew/mibew.git
synced 2025-04-10 09:50:12 +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['agentId'] = $operator['operatorid'];
|
||||||
$page['geoLink'] = Settings::get('geolink');
|
$page['geoLink'] = Settings::get('geolink');
|
||||||
$page['geoWindowParams'] = Settings::get('geolinkparams');
|
$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
|
// Load dialogs style options
|
||||||
$chat_style = new ChatStyle(ChatStyle::getCurrentStyle());
|
$chat_style = new ChatStyle(ChatStyle::getCurrentStyle());
|
||||||
|
@ -98,11 +98,11 @@
|
|||||||
threadTag: "{{[coreStyles.threadTag]}}",
|
threadTag: "{{[coreStyles.threadTag]}}",
|
||||||
visitorTag: "{{[coreStyles.visitorTag]}}",
|
visitorTag: "{{[coreStyles.visitorTag]}}",
|
||||||
|
|
||||||
agentLink: "{{mibewRoot}}/operator/chat",
|
agentLink: "{{agentLink}}",
|
||||||
geoLink: "{{geoLink}}",
|
geoLink: "{{geoLink}}",
|
||||||
trackedLink: "{{mibewRoot}}/operator/history/user-track",
|
trackedLink: "{{trackedLink}}",
|
||||||
banLink: "{{mibewRoot}}/operator/ban",
|
banLink: "{{banLink}}",
|
||||||
inviteLink: "{{mibewRoot}}/operator/invite",
|
inviteLink: "{{inviteLink}}",
|
||||||
|
|
||||||
chatWindowParams: "{{[chatStyles.chatWindowParams]}}",
|
chatWindowParams: "{{[chatStyles.chatWindowParams]}}",
|
||||||
geoWindowParams: "{{geoWindowParams}}",
|
geoWindowParams: "{{geoWindowParams}}",
|
||||||
|
Loading…
Reference in New Issue
Block a user