mirror of https://github.com/portainer/portainer
fix(volume): unable to inspect and browse volume [BE-11216] (#186)
parent
bb6815f681
commit
cb949e443e
|
@ -14,7 +14,7 @@
|
|||
<button
|
||||
ng-if="showBrowseAction"
|
||||
class="btn btn-xs btn-primary"
|
||||
ui-sref="docker.volumes.volume.browse({ id: volume.Id, nodeName: volume.NodeName })"
|
||||
ui-sref="docker.volumes.volume.browse({ id: volume.Name, nodeName: volume.NodeName })"
|
||||
authorization="DockerAgentBrowseList"
|
||||
>
|
||||
<pr-icon icon="'search'" class="leading-none"></pr-icon>
|
||||
|
|
|
@ -58,6 +58,8 @@ angular.module('portainer.docker').controller('VolumeController', [
|
|||
|
||||
var containers = dataContainers.map(function (container) {
|
||||
container.volumeData = getVolumeDataFromContainer(container, $scope.volume.Id);
|
||||
|
||||
$scope.volume.NodeName = container.NodeName || '';
|
||||
return container;
|
||||
});
|
||||
$scope.containersUsingVolume = containers;
|
||||
|
|
|
@ -81,7 +81,7 @@ function Cell({
|
|||
<Link
|
||||
to=".volume"
|
||||
params={{
|
||||
id: item.Id,
|
||||
id: item.Name,
|
||||
nodeName: item.NodeName,
|
||||
}}
|
||||
data-cy={`volume-link-${name}`}
|
||||
|
@ -99,7 +99,7 @@ function Cell({
|
|||
props={{
|
||||
to: 'docker.volumes.volume.browse',
|
||||
params: {
|
||||
id: item.Id,
|
||||
id: item.Name,
|
||||
nodeName: item.NodeName,
|
||||
},
|
||||
}}
|
||||
|
|
Loading…
Reference in New Issue