mirror of https://github.com/portainer/portainer
docs(templates): add deprecation notice for old volume format
parent
c1e486bf43
commit
13b2fcffd2
|
@ -16,6 +16,8 @@ function TemplateViewModel(data) {
|
||||||
this.Volumes = [];
|
this.Volumes = [];
|
||||||
if (data.volumes) {
|
if (data.volumes) {
|
||||||
this.Volumes = data.volumes.map(function (v) {
|
this.Volumes = data.volumes.map(function (v) {
|
||||||
|
// @DEPRECATED: New volume definition introduced
|
||||||
|
// via https://github.com/portainer/portainer/pull/1154
|
||||||
var volume = {
|
var volume = {
|
||||||
readOnly: v.readonly || false,
|
readOnly: v.readonly || false,
|
||||||
containerPath: v.container || v,
|
containerPath: v.container || v,
|
||||||
|
|
Loading…
Reference in New Issue