Skip to content

Commit a714f32

Browse files
etodanikAVGP
authored andcommitted
reset current workspace on delete
1 parent 61adb0a commit a714f32

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

public/js/workspace/workspaceController.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,19 @@ var WorkspaceCtrl = function($scope, $http, $timeout, $sce) {
5757
.success(function(data){
5858
console.log(data);
5959
alert(data.msg);
60+
6061
for(var i=0;i<$scope.workspaces.length;i++) {
6162
if($scope.workspaces[i].name === name) {
6263
$scope.workspaces.splice(i,1);
6364
break;
6465
}
6566
}
67+
68+
$scope.currentWorkspace = false;
6669
})
6770
.error(function(err) {
6871
console.log("ERR:", err);
72+
$scope.currentWorkspace = false;
6973
});
7074
}
7175

0 commit comments

Comments
 (0)