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:
parent
f8451e944a
commit
1d150414d9
5 changed files with 36 additions and 1 deletions
|
@ -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 = '';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue