1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-23 15:29:42 +02:00

feat(templates): add support for a restart_policy field (#898)

This commit is contained in:
Anthony Lapenna 2017-05-27 10:11:42 +02:00 committed by GitHub
parent 42d28db47a
commit bde9dd8b88
3 changed files with 5 additions and 1 deletions

View file

@ -10,6 +10,8 @@ function TemplateLSIOViewModel(data) {
this.Network = data.network ? data.network : '';
this.Env = data.env ? data.env : [];
this.Privileged = data.privileged ? data.privileged : false;
this.Interactive = data.interactive ? data.interactive : false;
this.RestartPolicy = data.restart_policy ? data.restart_policy : 'always';
this.Volumes = [];
if (data.volumes) {
this.Volumes = data.volumes.map(function (v) {