From 17a16b99cb2676b4a51565c08ad49613fbf306bd Mon Sep 17 00:00:00 2001 From: Yajith Dayarathna Date: Tue, 11 Jun 2024 16:10:09 +1200 Subject: [PATCH] updates --- app/docker/components/volumesNFSForm/volumesnfsForm.html | 2 +- app/docker/views/volumes/create/createVolumeController.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/docker/components/volumesNFSForm/volumesnfsForm.html b/app/docker/components/volumesNFSForm/volumesnfsForm.html index dfb3eb88d..23db95bff 100644 --- a/app/docker/components/volumesNFSForm/volumesnfsForm.html +++ b/app/docker/components/volumesNFSForm/volumesnfsForm.html @@ -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 /> diff --git a/app/docker/views/volumes/create/createVolumeController.js b/app/docker/views/volumes/create/createVolumeController.js index 733af5db9..a21f58906 100644 --- a/app/docker/views/volumes/create/createVolumeController.js +++ b/app/docker/views/volumes/create/createVolumeController.js @@ -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 }); }