Skip to content

Commit 4a679de

Browse files
committed
fixed error with file removal from other image
1 parent ebc908b commit 4a679de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

js/controller.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ app.controller('nc', function($scope) {
6767
machine.other.files.push({"name":"", "contents":""});
6868
};
6969

70-
$scope.removeGateway = function(machine) {
71-
if(machine.other.fileCounter>1 && confirm("Are you sure you want to remove the file?")) {
70+
$scope.removeFile = function(machine) {
71+
if(machine.other.fileCounter>0 && confirm("Are you sure you want to remove the file?")) {
7272
machine.other.files.pop();
7373
machine.other.fileCounter--;
7474
}

0 commit comments

Comments
 (0)