There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.
TypeScript appcrdteditorelectronknowledge-basemarkdownmironotesnotionnotion-alternativerustrust-langrust-languagetabletableviewwhiteboardwikiworkspace
chore(editor): update notification message of change display mode of doc (#9874)
L-Sund6cfbec5c94b
diff --git a/blocksuite/blocks/src/root-block/widgets/element-toolbar/change-note-button.ts b/blocksuite/blocks/src/root-block/widgets/element-toolbar/change-note-button.tsindex 5c0062cdb6..d47f0a74bd 100644--- a/blocksuite/blocks/src/root-block/widgets/element-toolbar/change-note-button.ts+++ b/blocksuite/blocks/src/root-block/widgets/element-toolbar/change-note-button.ts@@ -253,13 +253,21 @@ export class EdgelessChangeNoteButton extends WithDisposable(LitElement) {closeNotify();};+ const title =+ newMode !== NoteDisplayMode.EdgelessOnly+ ? 'Note displayed in Page Mode'+ : 'Note removed from Page Mode';+ const message =+ newMode !== NoteDisplayMode.EdgelessOnly+ ? 'Content added to your page.'+ : 'Content removed from your page.';+const notification = this.edgeless.std.getOptional(NotificationProvider);notification?.notify({- title: 'Note displayed in Page Mode',- message:- 'Content added to your page. Find it in the TOC for quick navigation.',+ title: title,+ message: `${message}. Find it in the TOC for quick navigation.`,accent: 'success',- duration: 1000 * 1000,+ duration: 5 * 1000,footer: html`<div class=${styles.viewInPageNotifyFooter}><buttonclass=${styles.viewInPageNotifyFooterButton}