Skip to content

Commit 1bb1d77

Browse files
committed
hide revert confirmation when revert a change
1 parent 2df8ddb commit 1bb1d77

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

webapp/directives.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -499,6 +499,8 @@ directive('zsdFileDiff', ['Backend', function(Backend){
499499
};
500500

501501
scope.revertChange = function(idx){
502+
delete scope.revertChangeConfirmation;
503+
502504
Backend.revertChange(scope.path, scope.diffResult.deltas[idx]).then(function(res){
503505
Backend.diffFile(scope.path, scope.curSnap.Name).then(function(res){
504506
scope.diffResult = res;

0 commit comments

Comments
 (0)