1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-08 15:25:22 +02:00

feat(volume-browser): add the ability to browse volume content (#2051)

This commit is contained in:
Anthony Lapenna 2018-07-23 07:01:03 +02:00 committed by GitHub
parent cec878b01d
commit 48179b9e3d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
22 changed files with 366 additions and 18 deletions

View file

@ -0,0 +1,11 @@
angular.module('portainer.docker')
.controller('BrowseVolumeController', ['$scope', '$transition$',
function ($scope, $transition$) {
function initView() {
$scope.volumeId = $transition$.params().id;
$scope.nodeName = $transition$.params().nodeName;
}
initView();
}]);

View file

@ -0,0 +1,15 @@
<rd-header>
<rd-header-title title-text="Volume browser"></rd-header-title>
<rd-header-content>
<a ui-sref="docker.volumes">Volumes</a> &gt; <a ui-sref="docker.volumes.volume({ id: volumeId })">{{ volumeId }}</a> &gt; browse
</rd-header-content>
</rd-header>
<div class="row">
<div class="col-sm-12">
<volume-browser
volume-id="volumeId"
node-name="nodeName"
></volume-browser>
</div>
</div>

View file

@ -10,12 +10,13 @@
<div class="row">
<div class="col-sm-12">
<volumes-datatable
title-text="Volumes" title-icon="fa-cubes"
dataset="volumes" table-key="volumes"
order-by="Id"
remove-action="removeAction"
show-ownership-column="applicationState.application.authentication"
show-host-column="applicationState.endpoint.mode.agentProxy"
title-text="Volumes" title-icon="fa-cubes"
dataset="volumes" table-key="volumes"
order-by="Id"
remove-action="removeAction"
show-ownership-column="applicationState.application.authentication"
show-host-column="applicationState.endpoint.mode.agentProxy"
show-browse-action="applicationState.endpoint.mode.agentProxy"
></volumes-datatable>
</div>
</div>