Compare commits

...

1 Commits

Author SHA1 Message Date
Yajith Dayarathna
17a16b99cb updates 2024-06-11 16:10:09 +12:00
2 changed files with 2 additions and 2 deletions

View File

@@ -57,7 +57,7 @@
class="form-control"
ng-model="$ctrl.data.mountPoint"
name="nfs_mountpoint"
placeholder="e.g. /export/share, :/export/share, /share or :/share"
placeholder="e.g. /export/share, :/export/share, address:/export/share, /share, :/share or address:/share"
required
/>
</div>

View File

@@ -97,7 +97,7 @@ angular.module('portainer.docker').controller('CreateVolumeController', [
}
driverOptions.push({ name: 'o', value: options });
var mountPoint = data.mountPoint[0] === ':' ? data.mountPoint : ':' + data.mountPoint;
var mountPoint = data.mountPoint.indexOf(":") === -1 ? ":" + data.mountPoint : data.mountPoint;
driverOptions.push({ name: 'device', value: mountPoint });
}