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:
parent
cec878b01d
commit
48179b9e3d
22 changed files with 366 additions and 18 deletions
11
app/docker/views/volumes/browse/browseVolumeController.js
Normal file
11
app/docker/views/volumes/browse/browseVolumeController.js
Normal 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();
|
||||
}]);
|
15
app/docker/views/volumes/browse/browsevolume.html
Normal file
15
app/docker/views/volumes/browse/browsevolume.html
Normal 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> > <a ui-sref="docker.volumes.volume({ id: volumeId })">{{ volumeId }}</a> > 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>
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue