1 <div id="agent-general" layout="column">
2 <div layout="row" layout-align="start center" class="md-primary-bg">
4 class="md-raised no-margin width-50"
5 style="border-radius: 0px"
6 ng-class="{'md-primary': !vm.isActiveTab(0)}"
7 ng-click="vm.onClickTab(0)"
10 <md-tooltip md-direction="bottom" md-delay="500">Home</md-tooltip>
11 <md-icon md-font-icon="icon-home" class="icon"></md-icon>
14 <ms-tab-scroll style="overflow: hidden">
17 ng-repeat="(key, tab) in vm.tabs"
18 ng-click="vm.onClickTab(tab.id)"
19 ng-class="{'grey-50-bg': vm.isActiveTab(tab.id)}"
24 layout-align="space-between center"
27 md-font-icon="{{tab.icon}}"
28 class="icon s16 margin-horizontal-5"
29 ng-class="tab.color + '-fg'"
33 class="text-truncate font-size-12"
34 ng-class="vm.isActiveTab(tab.id) ? 'black-fg' : 'grey-300-fg'"
37 <span ng-if="tab.badges" class="badge md-white-fg md-red-bg"
42 class="md-icon-button md-mini no-margin"
43 ng-class="vm.isActiveTab(tab.id) ? 'md-primary' : 'grey-300-fg'"
45 ng-click="vm.closeTab(tab)"
48 md-font-icon="icon-close-circle-outline"
55 ng-class="vm.isActiveTab(tab.id) ? tab.color + '-bg' : ''"
63 ng-if="vm.isActiveTab(0)"
64 ng-style="{'top': vm.detectBrowser.browser == 'safari' ? '100px' : '36px'}"
65 ng-include="'app/main/apps/dashboards/views/general/agent/home/agent.general.home.html'"
66 ng-controller="AgentGeneralHomeController as vm_home"
67 ng-init="vm_home.init(vm.license, vm.setting)"
70 ng-if="!vm.isActiveTab(0)"
71 ng-repeat="(key, tab) in vm.tabs"
74 <div ng-switch-when="contact">
78 ng-if="vm.isActiveTab(tab.id)"
79 ng-style="{'top': vm.detectBrowser.browser == 'safari' ? '100px' : '36px'}"
80 ng-include="'app/main/apps/dashboards/views/general/agent/contact/agent.general.contact.html'"
81 ng-controller="AgentGeneralContactController as vm"
82 ng-init="vm.init(tab,$parent.vm.license)"
85 <div ng-switch-when="popup">
87 ng-if="vm.isActiveTab(tab.id)"
89 ng-include="'app/main/apps/dashboards/views/general/agent/popup/agent.general.popup.html'"
90 ng-controller="AgentGeneralPopupController as vm"
91 ng-init="vm.init(tab)"
94 <div ng-switch-when="jscripty">
98 ng-if="vm.isActiveTab(tab.id)"
99 ng-style="{'top': vm.detectBrowser.browser == 'safari' ? '100px' : '36px'}"
100 ng-include="'app/main/apps/dashboards/views/general/agent/jscripty/agent.general.jscripty.html'"
101 ng-controller="AgentGeneralJscriptyController as vm"
102 ng-init="vm.init(tab)"
105 <div ng-switch-when="bot">
108 ng-if="vm.isActiveTab(tab.id)"
109 class="agent-content"
110 ng-style="{'top': vm.detectBrowser.browser == 'safari' ? '100px' : '36px'}"
111 ng-include="'app/main/apps/dashboards/views/general/agent/bot/agent.general.bot.html'"
112 ng-controller="AgentGeneralBotController as vm"
113 ng-init="vm.init(tab, $parent.vm.setting)"
116 <div ng-switch-when="interaction">
119 ng-if="vm.isActiveTab(tab.id)"
120 class="agent-content"
121 ng-style="{'top': vm.detectBrowser.browser == 'safari' ? '100px' : '36px'}"
122 ng-include="'app/main/apps/dashboards/views/general/agent/interaction/agent.general.interaction.html'"
123 ng-controller="AgentGeneralInteractionController as vm"
124 ng-init="vm.init(tab, $parent.vm.setting)"
127 <div ng-switch-when="iframe">
130 ng-if="vm.isActiveTab(tab.id)"
131 class="agent-content"
132 ng-style="{'top': vm.detectBrowser.browser == 'safari' ? '100px' : '36px'}"
133 ng-include="'app/main/apps/dashboards/views/general/agent/iframe/agent.general.iframe.html'"
134 ng-controller="AgentGeneralIframeController as vm"
135 ng-init="vm.init(tab, $parent.vm.setting)"