1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-28 09:49:40 +02:00

feat(templates): add /etc/hosts entries support (#1307)

This commit is contained in:
Riccardo Capuani 2017-10-27 10:48:11 +02:00 committed by Anthony Lapenna
parent f8451e944a
commit 1d150414d9
5 changed files with 36 additions and 1 deletions

View file

@ -34,6 +34,14 @@ function ($scope, $q, $state, $transition$, $anchorScroll, $filter, ContainerSer
$scope.state.selectedTemplate.Ports.splice(index, 1);
};
$scope.addExtraHost = function() {
$scope.state.selectedTemplate.Hosts.push('');
};
$scope.removeExtraHost = function(index) {
$scope.state.selectedTemplate.Hosts.splice(index, 1);
};
function validateForm(accessControlData, isAdmin) {
$scope.state.formValidationError = '';
var error = '';