Skip to content

Commit

Permalink
better indication when gist file was renamed or deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
blurymind committed Aug 10, 2024
1 parent 22e4e7a commit 5fec437
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/public/plugins/plugin-editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ export var PluginEditor = function ({
this.differ
.getEditors()
.right.getSession()
.setValue(gistPluginFile.content);
.setValue(gistPluginFile ? gistPluginFile.content : `//${fileName}\n\n//Gist with this filename is missing.\n// Have you deleted/renamed it?`);
this.differ.getEditors().right.setReadOnly(this.mode === 'commit');
});
}
Expand Down

0 comments on commit 5fec437

Please sign in to comment.