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:
parent
42d28db47a
commit
bde9dd8b88
3 changed files with 5 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue