fix search in "view source", closes #3929

This commit is contained in:
zadam
2023-05-13 15:58:32 +02:00
parent 38781d33ac
commit 8a6002c6be
3 changed files with 9 additions and 2 deletions

View File

@@ -5,7 +5,9 @@ import protectedSessionHolder from "../../services/protected_session_holder.js";
export default class EditButton extends OnClickButtonWidget {
isEnabled() {
return super.isEnabled() && this.note;
return super.isEnabled()
&& this.note
&& this.noteContext.viewScope.viewMode === 'default';
}
constructor() {