Skip to content

Commit

Permalink
fixed error with file removal from other image
Browse files Browse the repository at this point in the history
  • Loading branch information
Kidel committed Jan 14, 2018
1 parent ebc908b commit 4a679de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ app.controller('nc', function($scope) {
machine.other.files.push({"name":"", "contents":""});
};

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

0 comments on commit 4a679de

Please sign in to comment.