entry.filePath -> entry.fileName

This commit is contained in:
Johannes Zellner
2020-07-09 16:26:23 +02:00
parent 049a488e08
commit 805e07e65f
2 changed files with 6 additions and 6 deletions

View File

@@ -56,7 +56,7 @@ app.controller('FileManagerController', ['$scope', 'Client', function ($scope, C
};
$scope.open = function (entry) {
var filePath = sanitize($scope.cwd + '/' + entry.filePath);
var filePath = sanitize($scope.cwd + '/' + entry.fileName);
if (entry.isDirectory) {
setDirectory(filePath);
@@ -170,7 +170,7 @@ app.controller('FileManagerController', ['$scope', 'Client', function ($scope, C
show: function (entry) {
$scope.renameEntry.error = null;
$scope.renameEntry.entry = entry;
$scope.renameEntry.newName = entry.filePath;
$scope.renameEntry.newName = entry.fileName;
$scope.renameEntry.busy = false;
$('#renameEntryModal').modal('show');
@@ -179,7 +179,7 @@ app.controller('FileManagerController', ['$scope', 'Client', function ($scope, C
submit: function () {
$scope.renameEntry.busy = true;
var oldFilePath = sanitize($scope.cwd + '/' + $scope.renameEntry.entry.filePath);
var oldFilePath = sanitize($scope.cwd + '/' + $scope.renameEntry.entry.fileName);
var newFilePath = sanitize($scope.cwd + '/' + $scope.renameEntry.newName);
Client.filesRename($scope.appId, oldFilePath, newFilePath, function (error, result) {
@@ -210,7 +210,7 @@ app.controller('FileManagerController', ['$scope', 'Client', function ($scope, C
submit: function () {
$scope.entryRemove.busy = true;
var filePath = sanitize($scope.cwd + '/' + $scope.entryRemove.entry.filePath);
var filePath = sanitize($scope.cwd + '/' + $scope.entryRemove.entry.fileName);
Client.filesRemove($scope.appId, filePath, function (error, result) {
$scope.entryRemove.busy = false;