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

refactor(agent): refactor host-broswer to es6 (#4088)

* refactor(host): replace host-browser with es6 class

* refactor(host): replace promises with async

* refactor(hosts): replace delete promise with async

* refactor(host): replace upload file with async

* refactor(host): replace template strings

* fix(host): replace host root

* feat(agent): rename main file
This commit is contained in:
Chaim Lev-Ari 2020-07-23 10:45:23 +03:00 committed by GitHub
parent a473d738be
commit 1ef7347f19
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 166 additions and 155 deletions

View file

@ -0,0 +1,16 @@
<files-datatable
title-text="Host browser - {{ $ctrl.getRelativePath() }}"
title-icon="fa-file"
dataset="$ctrl.files"
table-key="host_browser"
order-by="Dir"
is-root="$ctrl.isRoot()"
go-to-parent="$ctrl.goToParent()"
browse="$ctrl.browse(name)"
rename="$ctrl.renameFile(name, newName)"
download="$ctrl.downloadFile(name)"
delete="$ctrl.confirmDeleteFile(name)"
is-upload-allowed="true"
on-file-selected-for-upload="($ctrl.onFileSelectedForUpload)"
>
</files-datatable>