Lines Matching full:scope
13 '$scope', 'APIUtils', 'dataService', 'Constants', '$interval', '$q',
16 $scope, APIUtils, dataService, Constants, $interval, $q, toastService, argument
18 $scope.dataService = dataService;
19 $scope.loading = true;
20 $scope.oneTimeBootEnabled = false;
21 $scope.bootOverrideError = false;
22 $scope.bootSources = [];
23 $scope.boot = {};
24 $scope.defaultRebootSetting = 'warm-reboot';
25 $scope.defaultShutdownSetting = 'warm-shutdown';
27 $scope.activeModal;
33 $scope.operationPending = false;
73 $scope.operationPending = true;
94 $scope.operationPending = false;
103 $scope.operationPending = true;
128 $scope.operationPending = false;
137 $scope.operationPending = true;
152 $scope.operationPending = false;
161 $scope.operationPending = true;
180 $scope.operationPending = false;
187 $scope.powerOn = () => {
188 $scope.operationPending = true;
202 $scope.operationPending = false;
233 scope: $scope, property in AnonymousClassb2ee87810301
241 $scope.activeModal = undefined;
245 $scope.rebootConfirmModal = function() {
246 if ($scope.rebootForm.radioReboot.$modelValue == 'warm-reboot') {
247 $scope.activeModal = powerOperations.WARM_REBOOT;
248 } else if ($scope.rebootForm.radioReboot.$modelValue == 'cold-reboot') {
249 $scope.activeModal = powerOperations.COLD_REBOOT;
254 $scope.shutdownConfirmModal = function() {
255 if ($scope.shutdownForm.radioShutdown.$modelValue == 'warm-shutdown') {
256 $scope.activeModal = powerOperations.WARM_SHUTDOWN;
258 $scope.shutdownForm.radioShutdown.$modelValue == 'cold-shutdown') {
259 $scope.activeModal = powerOperations.COLD_SHUTDOWN;
264 $scope.resetForm = function() {
265 $scope.boot = angular.copy($scope.originalBoot);
266 $scope.TPMToggle = angular.copy($scope.originalTPMToggle);
282 $scope.bootSources = bootSourceValues;
284 $scope.boot = {
290 $scope.boot.oneTimeBootEnabled = true;
293 $scope.originalBoot = angular.copy($scope.boot);
296 $scope.bootOverrideError = true;
301 $scope.loading = false;
310 $scope.TPMToggle = response.data;
311 $scope.originalTPMToggle = angular.copy($scope.TPMToggle);
317 $scope.loading = false;
323 $scope.saveBootSettings = function() {
324 if ($scope.hostBootSettings.bootSelected.$dirty ||
325 $scope.hostBootSettings.oneTime.$dirty) {
329 let isOneTimeBoot = $scope.boot.oneTimeBootEnabled;
330 let overrideTarget = $scope.boot.BootSourceOverrideTarget || 'None';
344 $scope.originalBoot = angular.copy($scope.boot);
357 $scope.saveTPMPolicy = function() {
358 if ($scope.hostBootSettings.toggle.$dirty) {
359 const tpmEnabled = $scope.TPMToggle.TPMEnable;
368 $scope.originalTPMToggle = angular.copy($scope.TPMToggle);
382 $scope.onChangeBootSetting = function() {
383 const bootSetting = $scope.hostBootSettings.bootSelected.$viewValue;
385 $scope.boot.oneTimeBootEnabled = false;
392 $scope.$on('$viewContentLoaded', function() {
397 $scope.powerTime = 'not available';
399 $scope.powerTime = data.data;
408 $scope.loading = false;