Skip to content

Commit 07dc619

Browse files
authored
Merge pull request jupyter#3350 from Shels1909/nb_metadata_3095
Set notebook to dirty state after change to kernel metadata
2 parents dd7eab3 + b5932ad commit 07dc619

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

notebook/static/notebook/js/notebook.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -572,8 +572,11 @@ define([
572572
var that = this;
573573
dialog.edit_metadata({
574574
md: this.metadata,
575-
callback: function (md) {
576-
that.metadata = md;
575+
callback: function (new_md) {
576+
if(!_.isEqual(that.metadata, new_md)){
577+
that.set_dirty(true);
578+
}
579+
that.metadata = new_md;
577580
},
578581
name: 'Notebook',
579582
notebook: this,

0 commit comments

Comments
 (0)