(function() { 'use strict'; angular.module('shared') .component('desktopManageStudents', { templateUrl: '/shared/js/angular/main-navigation/desktop-manage-students.html', controller: 'DesktopManageStudentsController', }) .controller('DesktopManageStudentsController', ['SITE_ID', 'SiteHelper', function DesktopManageStudentsController(SITE_ID, SiteHelper) { var ctrl = this; ctrl.isKaz = parseInt(SITE_ID) === SiteHelper.KAZ_SITE_ID; ctrl.isVaz = parseInt(SITE_ID) === SiteHelper.VAZ_SITE_ID; ctrl.buttonLabel = ctrl.isKaz ? 'My Classroom' : 'Manage Students'; ctrl.setPopover = function(popoverCtrl) { ctrl.popoverCtrl = popoverCtrl; }; ctrl.close = function() { ctrl.popoverCtrl.close(); }; ctrl.contentKeyDown = function(event) { if (typeof modalKeyDown == 'function') { modalKeyDown(event, ctrl.close, 'js-manageStudentsTarget'); } }; } ]) })();