Skip to content

Commit

Permalink
Fixed: #871 - Preview does not react on "unpublish" event
Browse files Browse the repository at this point in the history
  • Loading branch information
delchev committed May 27, 2021
1 parent 0742ec3 commit 062eb57
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ide/ui/ide-preview/src/main/resources/ide-preview/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,11 @@ angular.module('preview', [])
$scope.$apply();
}.bind(this));

$messageHub.on('workspace.file.unpublished', function(msg) {
this.refresh();
$scope.$apply();
}.bind(this));

$scope.cancel = function(e) {
if (e.keyCode === 27) {
$scope.previewForm.preview.$rollbackViewValue();
Expand Down

0 comments on commit 062eb57

Please sign in to comment.