2016-09-23 04:54:58 +00:00
|
|
|
angular.module('service', [])
|
2017-07-24 09:59:09 +00:00
|
|
|
.controller('ServiceController', ['$q', '$scope', '$stateParams', '$state', '$location', '$timeout', '$anchorScroll', 'ServiceService', 'SecretService', 'SecretHelper', 'Service', 'ServiceHelper', 'LabelHelper', 'TaskService', 'NodeService', 'Notifications', 'Pagination', 'ModalService',
|
|
|
|
function ($q, $scope, $stateParams, $state, $location, $timeout, $anchorScroll, ServiceService, SecretService, SecretHelper, Service, ServiceHelper, LabelHelper, TaskService, NodeService, Notifications, Pagination, ModalService) {
|
2016-09-23 04:54:58 +00:00
|
|
|
|
2017-01-24 01:28:40 +00:00
|
|
|
$scope.state = {};
|
|
|
|
$scope.state.pagination_count = Pagination.getPaginationCount('service_tasks');
|
2016-09-23 04:54:58 +00:00
|
|
|
$scope.tasks = [];
|
2017-06-15 20:52:49 +00:00
|
|
|
$scope.sortType = 'Updated';
|
|
|
|
$scope.sortReverse = true;
|
2016-09-23 04:54:58 +00:00
|
|
|
|
2017-03-20 20:28:09 +00:00
|
|
|
$scope.lastVersion = 0;
|
|
|
|
|
|
|
|
var originalService = {};
|
|
|
|
var previousServiceValues = [];
|
2016-11-09 00:23:56 +00:00
|
|
|
|
2016-09-23 04:54:58 +00:00
|
|
|
$scope.order = function (sortType) {
|
|
|
|
$scope.sortReverse = ($scope.sortType === sortType) ? !$scope.sortReverse : false;
|
|
|
|
$scope.sortType = sortType;
|
|
|
|
};
|
|
|
|
|
2017-01-24 01:28:40 +00:00
|
|
|
$scope.changePaginationCount = function() {
|
|
|
|
Pagination.setPaginationCount('service_tasks', $scope.state.pagination_count);
|
|
|
|
};
|
|
|
|
|
2016-09-23 04:54:58 +00:00
|
|
|
$scope.renameService = function renameService(service) {
|
2016-11-09 00:23:56 +00:00
|
|
|
updateServiceAttribute(service, 'Name', service.newServiceName || service.name);
|
|
|
|
service.EditName = false;
|
|
|
|
};
|
|
|
|
$scope.changeServiceImage = function changeServiceImage(service) {
|
|
|
|
updateServiceAttribute(service, 'Image', service.newServiceImage || service.image);
|
|
|
|
service.EditImage = false;
|
|
|
|
};
|
|
|
|
$scope.scaleService = function scaleService(service) {
|
2016-12-30 23:59:20 +00:00
|
|
|
var replicas = service.newServiceReplicas === null || isNaN(service.newServiceReplicas) ? service.Replicas : service.newServiceReplicas;
|
|
|
|
updateServiceAttribute(service, 'Replicas', replicas);
|
2016-11-09 00:23:56 +00:00
|
|
|
service.EditReplicas = false;
|
|
|
|
};
|
|
|
|
|
2017-03-20 20:28:09 +00:00
|
|
|
$scope.goToItem = function(hash) {
|
2017-06-20 10:54:27 +00:00
|
|
|
if ($location.hash() !== hash) {
|
|
|
|
$location.hash(hash);
|
|
|
|
} else {
|
|
|
|
$anchorScroll();
|
|
|
|
}
|
2017-03-20 20:28:09 +00:00
|
|
|
};
|
|
|
|
|
2016-11-09 00:23:56 +00:00
|
|
|
$scope.addEnvironmentVariable = function addEnvironmentVariable(service) {
|
|
|
|
service.EnvironmentVariables.push({ key: '', value: '', originalValue: '' });
|
2017-03-20 20:28:09 +00:00
|
|
|
updateServiceArray(service, 'EnvironmentVariables', service.EnvironmentVariables);
|
2016-11-09 00:23:56 +00:00
|
|
|
};
|
|
|
|
$scope.removeEnvironmentVariable = function removeEnvironmentVariable(service, index) {
|
|
|
|
var removedElement = service.EnvironmentVariables.splice(index, 1);
|
2017-03-20 20:28:09 +00:00
|
|
|
if (removedElement !== null) {
|
|
|
|
updateServiceArray(service, 'EnvironmentVariables', service.EnvironmentVariables);
|
|
|
|
}
|
2016-11-09 00:23:56 +00:00
|
|
|
};
|
|
|
|
$scope.updateEnvironmentVariable = function updateEnvironmentVariable(service, variable) {
|
2017-03-20 20:28:09 +00:00
|
|
|
if (variable.value !== variable.originalValue || variable.key !== variable.originalKey) {
|
|
|
|
updateServiceArray(service, 'EnvironmentVariables', service.EnvironmentVariables);
|
|
|
|
}
|
2016-11-09 00:23:56 +00:00
|
|
|
};
|
2017-05-27 07:23:49 +00:00
|
|
|
$scope.addSecret = function addSecret(service, secret) {
|
|
|
|
if (secret && service.ServiceSecrets.filter(function(serviceSecret) { return serviceSecret.Id === secret.Id;}).length === 0) {
|
|
|
|
service.ServiceSecrets.push({ Id: secret.Id, Name: secret.Name, FileName: secret.Name, Uid: '0', Gid: '0', Mode: 444 });
|
|
|
|
updateServiceArray(service, 'ServiceSecrets', service.ServiceSecrets);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
$scope.removeSecret = function removeSecret(service, index) {
|
|
|
|
var removedElement = service.ServiceSecrets.splice(index, 1);
|
|
|
|
if (removedElement !== null) {
|
|
|
|
updateServiceArray(service, 'ServiceSecrets', service.ServiceSecrets);
|
|
|
|
}
|
|
|
|
};
|
2016-11-10 02:38:49 +00:00
|
|
|
$scope.addLabel = function addLabel(service) {
|
|
|
|
service.ServiceLabels.push({ key: '', value: '', originalValue: '' });
|
2017-03-20 20:28:09 +00:00
|
|
|
updateServiceArray(service, 'ServiceLabels', service.ServiceLabels);
|
2016-11-10 02:38:49 +00:00
|
|
|
};
|
|
|
|
$scope.removeLabel = function removeLabel(service, index) {
|
|
|
|
var removedElement = service.ServiceLabels.splice(index, 1);
|
2017-03-20 20:28:09 +00:00
|
|
|
if (removedElement !== null) {
|
|
|
|
updateServiceArray(service, 'ServiceLabels', service.ServiceLabels);
|
|
|
|
}
|
2016-11-10 02:38:49 +00:00
|
|
|
};
|
|
|
|
$scope.updateLabel = function updateLabel(service, label) {
|
2017-03-20 20:28:09 +00:00
|
|
|
if (label.value !== label.originalValue || label.key !== label.originalKey) {
|
|
|
|
updateServiceArray(service, 'ServiceLabels', service.ServiceLabels);
|
|
|
|
}
|
2016-11-10 02:38:49 +00:00
|
|
|
};
|
2016-11-25 06:21:06 +00:00
|
|
|
$scope.addContainerLabel = function addContainerLabel(service) {
|
|
|
|
service.ServiceContainerLabels.push({ key: '', value: '', originalValue: '' });
|
2017-03-20 20:28:09 +00:00
|
|
|
updateServiceArray(service, 'ServiceContainerLabels', service.ServiceContainerLabels);
|
2016-11-25 06:21:06 +00:00
|
|
|
};
|
2017-03-20 20:28:09 +00:00
|
|
|
$scope.removeContainerLabel = function removeLabel(service, index) {
|
2016-11-25 06:21:06 +00:00
|
|
|
var removedElement = service.ServiceContainerLabels.splice(index, 1);
|
2017-03-20 20:28:09 +00:00
|
|
|
if (removedElement !== null) {
|
|
|
|
updateServiceArray(service, 'ServiceContainerLabels', service.ServiceContainerLabels);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
$scope.updateContainerLabel = function updateLabel(service, label) {
|
|
|
|
if (label.value !== label.originalValue || label.key !== label.originalKey) {
|
|
|
|
updateServiceArray(service, 'ServiceContainerLabels', service.ServiceContainerLabels);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
$scope.addMount = function addMount(service) {
|
|
|
|
service.ServiceMounts.push({Type: 'volume', Source: '', Target: '', ReadOnly: false });
|
|
|
|
updateServiceArray(service, 'ServiceMounts', service.ServiceMounts);
|
|
|
|
};
|
|
|
|
$scope.removeMount = function removeMount(service, index) {
|
|
|
|
var removedElement = service.ServiceMounts.splice(index, 1);
|
|
|
|
if (removedElement !== null) {
|
|
|
|
updateServiceArray(service, 'ServiceMounts', service.ServiceMounts);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
$scope.updateMount = function updateMount(service, mount) {
|
|
|
|
updateServiceArray(service, 'ServiceMounts', service.ServiceMounts);
|
|
|
|
};
|
|
|
|
$scope.addPlacementConstraint = function addPlacementConstraint(service) {
|
|
|
|
service.ServiceConstraints.push({ key: '', operator: '==', value: '' });
|
|
|
|
updateServiceArray(service, 'ServiceConstraints', service.ServiceConstraints);
|
|
|
|
};
|
|
|
|
$scope.removePlacementConstraint = function removePlacementConstraint(service, index) {
|
|
|
|
var removedElement = service.ServiceConstraints.splice(index, 1);
|
|
|
|
if (removedElement !== null) {
|
|
|
|
updateServiceArray(service, 'ServiceConstraints', service.ServiceConstraints);
|
|
|
|
}
|
|
|
|
};
|
2017-07-10 07:33:09 +00:00
|
|
|
$scope.updatePlacementConstraint = function(service, constraint) {
|
2017-03-20 20:28:09 +00:00
|
|
|
updateServiceArray(service, 'ServiceConstraints', service.ServiceConstraints);
|
2016-11-25 06:21:06 +00:00
|
|
|
};
|
2016-11-09 00:23:56 +00:00
|
|
|
|
2017-07-10 07:33:09 +00:00
|
|
|
$scope.addPlacementPreference = function(service) {
|
|
|
|
service.ServicePreferences.push({ strategy: 'spread', value: '' });
|
|
|
|
updateServiceArray(service, 'ServicePreferences', service.ServicePreferences);
|
|
|
|
};
|
|
|
|
$scope.removePlacementPreference = function(service, index) {
|
|
|
|
var removedElement = service.ServicePreferences.splice(index, 1);
|
|
|
|
if (removedElement !== null) {
|
|
|
|
updateServiceArray(service, 'ServicePreferences', service.ServicePreferences);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
$scope.updatePlacementPreference = function(service, constraint) {
|
|
|
|
updateServiceArray(service, 'ServicePreferences', service.ServicePreferences);
|
|
|
|
};
|
|
|
|
|
2017-03-20 20:28:09 +00:00
|
|
|
$scope.addPublishedPort = function addPublishedPort(service) {
|
|
|
|
if (!service.Ports) {
|
|
|
|
service.Ports = [];
|
|
|
|
}
|
2017-05-04 07:43:20 +00:00
|
|
|
service.Ports.push({ PublishedPort: '', TargetPort: '', Protocol: 'tcp', PublishMode: 'ingress' });
|
2016-12-25 20:31:22 +00:00
|
|
|
};
|
2017-03-20 20:28:09 +00:00
|
|
|
$scope.updatePublishedPort = function updatePublishedPort(service, portMapping) {
|
|
|
|
updateServiceArray(service, 'Ports', service.Ports);
|
2016-12-25 20:31:22 +00:00
|
|
|
};
|
2017-03-20 20:28:09 +00:00
|
|
|
$scope.removePortPublishedBinding = function removePortPublishedBinding(service, index) {
|
|
|
|
var removedElement = service.Ports.splice(index, 1);
|
|
|
|
if (removedElement !== null) {
|
|
|
|
updateServiceArray(service, 'Ports', service.Ports);
|
|
|
|
}
|
2016-12-25 20:31:22 +00:00
|
|
|
};
|
|
|
|
|
2017-03-20 20:28:09 +00:00
|
|
|
$scope.cancelChanges = function cancelChanges(service, keys) {
|
|
|
|
if (keys) { // clean out the keys only from the list of modified keys
|
|
|
|
keys.forEach(function(key) {
|
|
|
|
var index = previousServiceValues.indexOf(key);
|
|
|
|
if (index >= 0) {
|
|
|
|
previousServiceValues.splice(index, 1);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
} else { // clean out all changes
|
|
|
|
keys = Object.keys(service);
|
|
|
|
previousServiceValues = [];
|
|
|
|
}
|
|
|
|
keys.forEach(function(attribute) {
|
|
|
|
service[attribute] = originalService[attribute]; // reset service values
|
2016-09-23 04:54:58 +00:00
|
|
|
});
|
2016-11-09 00:23:56 +00:00
|
|
|
service.hasChanges = false;
|
2016-09-23 04:54:58 +00:00
|
|
|
};
|
|
|
|
|
2017-03-20 20:28:09 +00:00
|
|
|
$scope.hasChanges = function(service, elements) {
|
|
|
|
var hasChanges = false;
|
|
|
|
elements.forEach(function(key) {
|
|
|
|
hasChanges = hasChanges || (previousServiceValues.indexOf(key) >= 0);
|
|
|
|
});
|
|
|
|
return hasChanges;
|
|
|
|
};
|
|
|
|
|
2016-11-09 00:23:56 +00:00
|
|
|
$scope.updateService = function updateService(service) {
|
2017-04-06 08:34:49 +00:00
|
|
|
$('#loadingViewSpinner').show();
|
2016-09-23 04:54:58 +00:00
|
|
|
var config = ServiceHelper.serviceToConfig(service.Model);
|
2017-03-20 20:28:09 +00:00
|
|
|
config.Name = service.Name;
|
2017-07-10 07:33:09 +00:00
|
|
|
config.Labels = LabelHelper.fromKeyValueToLabelHash(service.ServiceLabels);
|
|
|
|
config.TaskTemplate.ContainerSpec.Env = ServiceHelper.translateEnvironmentVariablesToEnv(service.EnvironmentVariables);
|
|
|
|
config.TaskTemplate.ContainerSpec.Labels = LabelHelper.fromKeyValueToLabelHash(service.ServiceContainerLabels);
|
2017-03-20 20:28:09 +00:00
|
|
|
config.TaskTemplate.ContainerSpec.Image = service.Image;
|
2017-05-27 07:23:49 +00:00
|
|
|
config.TaskTemplate.ContainerSpec.Secrets = service.ServiceSecrets ? service.ServiceSecrets.map(SecretHelper.secretConfig) : [];
|
2017-03-20 20:28:09 +00:00
|
|
|
|
2016-11-11 02:26:19 +00:00
|
|
|
if (service.Mode === 'replicated') {
|
|
|
|
config.Mode.Replicated.Replicas = service.Replicas;
|
|
|
|
}
|
2017-03-20 20:28:09 +00:00
|
|
|
config.TaskTemplate.ContainerSpec.Mounts = service.ServiceMounts;
|
|
|
|
if (typeof config.TaskTemplate.Placement === 'undefined') {
|
|
|
|
config.TaskTemplate.Placement = {};
|
|
|
|
}
|
2017-05-04 06:57:08 +00:00
|
|
|
config.TaskTemplate.Placement.Constraints = ServiceHelper.translateKeyValueToPlacementConstraints(service.ServiceConstraints);
|
2017-07-10 07:33:09 +00:00
|
|
|
config.TaskTemplate.Placement.Preferences = ServiceHelper.translateKeyValueToPlacementPreferences(service.ServicePreferences);
|
2017-03-20 20:28:09 +00:00
|
|
|
|
|
|
|
config.TaskTemplate.Resources = {
|
|
|
|
Limits: {
|
|
|
|
NanoCPUs: service.LimitNanoCPUs,
|
|
|
|
MemoryBytes: service.LimitMemoryBytes
|
|
|
|
},
|
|
|
|
Reservations: {
|
|
|
|
NanoCPUs: service.ReservationNanoCPUs,
|
|
|
|
MemoryBytes: service.ReservationMemoryBytes
|
|
|
|
}
|
|
|
|
};
|
2016-11-09 00:23:56 +00:00
|
|
|
|
2016-12-25 20:31:22 +00:00
|
|
|
config.UpdateConfig = {
|
2017-03-20 20:28:09 +00:00
|
|
|
Parallelism: service.UpdateParallelism,
|
|
|
|
Delay: service.UpdateDelay,
|
|
|
|
FailureAction: service.UpdateFailureAction
|
|
|
|
};
|
|
|
|
config.TaskTemplate.RestartPolicy = {
|
|
|
|
Condition: service.RestartCondition,
|
|
|
|
Delay: service.RestartDelay,
|
|
|
|
MaxAttempts: service.RestartMaxAttempts,
|
|
|
|
Window: service.RestartWindow
|
|
|
|
};
|
2017-03-30 10:00:16 +00:00
|
|
|
|
2017-04-06 08:35:01 +00:00
|
|
|
if (service.Ports) {
|
|
|
|
service.Ports.forEach(function (binding) {
|
|
|
|
if (binding.PublishedPort === null || binding.PublishedPort === '') {
|
|
|
|
delete binding.PublishedPort;
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
2017-03-30 10:00:16 +00:00
|
|
|
|
2017-03-20 20:28:09 +00:00
|
|
|
config.EndpointSpec = {
|
|
|
|
Mode: config.EndpointSpec.Mode || 'vip',
|
|
|
|
Ports: service.Ports
|
2016-12-25 20:31:22 +00:00
|
|
|
};
|
|
|
|
|
2016-09-23 04:54:58 +00:00
|
|
|
Service.update({ id: service.Id, version: service.Version }, config, function (data) {
|
2017-04-06 08:34:49 +00:00
|
|
|
$('#loadingViewSpinner').hide();
|
2017-05-23 18:56:10 +00:00
|
|
|
Notifications.success('Service successfully updated', 'Service updated');
|
2017-03-20 20:28:09 +00:00
|
|
|
$scope.cancelChanges({});
|
2017-05-23 18:56:10 +00:00
|
|
|
initView();
|
2016-09-23 04:54:58 +00:00
|
|
|
}, function (e) {
|
2017-04-06 08:34:49 +00:00
|
|
|
$('#loadingViewSpinner').hide();
|
2017-05-23 18:56:10 +00:00
|
|
|
Notifications.error('Failure', e, 'Unable to update service');
|
2016-09-23 04:54:58 +00:00
|
|
|
});
|
|
|
|
};
|
|
|
|
|
2017-03-30 09:22:59 +00:00
|
|
|
$scope.removeService = function() {
|
|
|
|
ModalService.confirmDeletion(
|
2017-04-25 08:20:57 +00:00
|
|
|
'Do you want to remove this service? All the containers associated to this service will be removed too.',
|
2017-03-30 09:22:59 +00:00
|
|
|
function onConfirm(confirmed) {
|
|
|
|
if(!confirmed) { return; }
|
|
|
|
removeService();
|
|
|
|
}
|
|
|
|
);
|
|
|
|
};
|
2016-11-09 00:23:56 +00:00
|
|
|
|
2017-03-30 09:22:59 +00:00
|
|
|
function removeService() {
|
2016-09-23 04:54:58 +00:00
|
|
|
$('#loadingViewSpinner').show();
|
2017-05-23 18:56:10 +00:00
|
|
|
ServiceService.remove($scope.service)
|
|
|
|
.then(function success(data) {
|
|
|
|
Notifications.success('Service successfully deleted');
|
|
|
|
$state.go('services', {});
|
|
|
|
})
|
|
|
|
.catch(function error(err) {
|
|
|
|
Notifications.error('Failure', err, 'Unable to remove service');
|
|
|
|
})
|
|
|
|
.finally(function final() {
|
2016-09-23 04:54:58 +00:00
|
|
|
$('#loadingViewSpinner').hide();
|
|
|
|
});
|
2017-03-30 09:22:59 +00:00
|
|
|
}
|
2016-09-23 04:54:58 +00:00
|
|
|
|
2017-03-20 20:28:09 +00:00
|
|
|
function translateServiceArrays(service) {
|
2017-05-27 07:23:49 +00:00
|
|
|
service.ServiceSecrets = service.Secrets ? service.Secrets.map(SecretHelper.flattenSecret) : [];
|
2017-07-10 07:33:09 +00:00
|
|
|
service.EnvironmentVariables = ServiceHelper.translateEnvironmentVariables(service.Env);
|
|
|
|
service.ServiceLabels = LabelHelper.fromLabelHashToKeyValue(service.Labels);
|
|
|
|
service.ServiceContainerLabels = LabelHelper.fromLabelHashToKeyValue(service.ContainerLabels);
|
2017-03-20 20:28:09 +00:00
|
|
|
service.ServiceMounts = angular.copy(service.Mounts);
|
2017-07-10 07:33:09 +00:00
|
|
|
service.ServiceConstraints = ServiceHelper.translateConstraintsToKeyValue(service.Constraints);
|
|
|
|
service.ServicePreferences = ServiceHelper.translatePreferencesToKeyValue(service.Preferences);
|
2017-03-20 20:28:09 +00:00
|
|
|
}
|
|
|
|
|
2017-05-23 18:56:10 +00:00
|
|
|
function initView() {
|
2016-09-23 04:54:58 +00:00
|
|
|
$('#loadingViewSpinner').show();
|
2017-07-24 09:59:09 +00:00
|
|
|
var apiVersion = $scope.applicationState.endpoint.apiVersion;
|
2017-05-23 18:56:10 +00:00
|
|
|
ServiceService.service($stateParams.id)
|
|
|
|
.then(function success(data) {
|
|
|
|
var service = data;
|
2017-03-20 20:28:09 +00:00
|
|
|
$scope.isUpdating = $scope.lastVersion >= service.Version;
|
|
|
|
if (!$scope.isUpdating) {
|
|
|
|
$scope.lastVersion = service.Version;
|
|
|
|
}
|
2016-11-09 00:23:56 +00:00
|
|
|
|
2017-03-20 20:28:09 +00:00
|
|
|
translateServiceArrays(service);
|
2016-09-23 04:54:58 +00:00
|
|
|
$scope.service = service;
|
2017-03-20 20:28:09 +00:00
|
|
|
originalService = angular.copy(service);
|
|
|
|
|
2017-05-23 18:56:10 +00:00
|
|
|
return $q.all({
|
|
|
|
tasks: TaskService.serviceTasks(service.Name),
|
2017-05-27 07:23:49 +00:00
|
|
|
nodes: NodeService.nodes(),
|
2017-07-24 09:59:09 +00:00
|
|
|
secrets: apiVersion >= 1.25 ? SecretService.secrets() : []
|
2016-09-23 04:54:58 +00:00
|
|
|
});
|
2017-05-23 18:56:10 +00:00
|
|
|
})
|
|
|
|
.then(function success(data) {
|
|
|
|
$scope.tasks = data.tasks;
|
|
|
|
$scope.nodes = data.nodes;
|
2017-07-24 09:59:09 +00:00
|
|
|
$scope.secrets = data.secrets;
|
2017-06-20 10:54:27 +00:00
|
|
|
|
|
|
|
$timeout(function() {
|
|
|
|
$anchorScroll();
|
|
|
|
});
|
2017-05-23 18:56:10 +00:00
|
|
|
})
|
|
|
|
.catch(function error(err) {
|
2017-05-27 07:23:49 +00:00
|
|
|
$scope.secrets = [];
|
2017-05-23 18:56:10 +00:00
|
|
|
Notifications.error('Failure', err, 'Unable to retrieve service details');
|
|
|
|
})
|
|
|
|
.finally(function final() {
|
2016-09-23 04:54:58 +00:00
|
|
|
$('#loadingViewSpinner').hide();
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2017-03-20 20:28:09 +00:00
|
|
|
$scope.updateServiceAttribute = function updateServiceAttribute(service, name) {
|
|
|
|
if (service[name] !== originalService[name] || !(name in originalService)) {
|
|
|
|
service.hasChanges = true;
|
2016-11-09 00:23:56 +00:00
|
|
|
}
|
2017-03-20 20:28:09 +00:00
|
|
|
previousServiceValues.push(name);
|
|
|
|
};
|
|
|
|
|
|
|
|
function updateServiceArray(service, name) {
|
|
|
|
previousServiceValues.push(name);
|
2016-11-09 00:23:56 +00:00
|
|
|
service.hasChanges = true;
|
|
|
|
}
|
|
|
|
|
2017-05-23 18:56:10 +00:00
|
|
|
initView();
|
2016-09-23 04:54:58 +00:00
|
|
|
}]);
|