Skip to content

Commit 63d4415

Browse files
authored
Merge pull request #2854 from Madhu94/copy-dirty-readonly-notebook
Allow copy operation on modified, read-only notebook
2 parents aa58dcb + a5e64c3 commit 63d4415

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

notebook/static/notebook/js/notebook.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2910,7 +2910,7 @@ define([
29102910
var w = window.open('', IPython._target);
29112911
var parent = utils.url_path_split(this.notebook_path)[0];
29122912
var p;
2913-
if (this.dirty) {
2913+
if (this.dirty && this.writable) {
29142914
p = this.save_notebook(true);
29152915
} else {
29162916
p = Promise.resolve();

0 commit comments

Comments
 (0)