fix(agent): download file from root

pull/2337/head
Chaim Lev-Ari 2018-09-30 11:45:51 +03:00
parent a515acb6f5
commit b564395e50
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ angular.module('portainer.agent').controller('HostBrowserController', [
}
function downloadFile(file) {
var filePath = ctrl.isRoot() ? file : this.state.path + '/' + file;
var filePath = buildPath(ctrl.state.path, file);
HostBrowserService.get(filePath)
.then(function onFileReceived(data) {
var downloadData = new Blob([data.file], {