mirror of
https://github.com/portainer/portainer.git
synced 2025-08-02 12:25:22 +02:00
refactor(agent): refactor volume browser to es6 (#4086)
* refactor(agent): replace root with index * refactor(agent): use simple export * refactor(agent): replace function with class * refactor(agent): replace promise with async
This commit is contained in:
parent
7eb8d5449a
commit
a473d738be
3 changed files with 139 additions and 120 deletions
13
app/agent/components/volume-browser/index.js
Normal file
13
app/agent/components/volume-browser/index.js
Normal file
|
@ -0,0 +1,13 @@
|
|||
import angular from 'angular';
|
||||
|
||||
import { VolumeBrowserController } from './volumeBrowserController';
|
||||
|
||||
angular.module('portainer.agent').component('volumeBrowser', {
|
||||
templateUrl: './volumeBrowser.html',
|
||||
controller: VolumeBrowserController,
|
||||
bindings: {
|
||||
volumeId: '<',
|
||||
nodeName: '<',
|
||||
isUploadEnabled: '<',
|
||||
},
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue