Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions zeppelin-web/src/app/notebook/notebook.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -499,15 +499,17 @@ angular.module('zeppelinWebApp').controller('NotebookCtrl', function($scope, $ro
if (isSettingDirty()) {
BootstrapDialog.confirm({
title: '',
message: 'Changes will be discarded',
message: 'Changes will be discarded.',
callback: function(result) {
if (result) {
$scope.$apply(function () {
$scope.$apply(function() {
$scope.showSetting = false;
});
}
}
});
} else {
$scope.showSetting = false;
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just $scope.showSetting = false; wouldn't be enough?
Personally I wouldn't expect alert message in this case.
And after clicking cancel, having 'cancel' and 'ok' button choice feels a bit awkward for me.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with Mina, no need for Dialog here

};

Expand Down