chore(editor): update notification message of change display mode of doc (#9874)
This commit is contained in:
@@ -253,13 +253,21 @@ export class EdgelessChangeNoteButton extends WithDisposable(LitElement) {
|
|||||||
closeNotify();
|
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);
|
const notification = this.edgeless.std.getOptional(NotificationProvider);
|
||||||
notification?.notify({
|
notification?.notify({
|
||||||
title: 'Note displayed in Page Mode',
|
title: title,
|
||||||
message:
|
message: `${message}. Find it in the TOC for quick navigation.`,
|
||||||
'Content added to your page. Find it in the TOC for quick navigation.',
|
|
||||||
accent: 'success',
|
accent: 'success',
|
||||||
duration: 1000 * 1000,
|
duration: 5 * 1000,
|
||||||
footer: html`<div class=${styles.viewInPageNotifyFooter}>
|
footer: html`<div class=${styles.viewInPageNotifyFooter}>
|
||||||
<button
|
<button
|
||||||
class=${styles.viewInPageNotifyFooterButton}
|
class=${styles.viewInPageNotifyFooterButton}
|
||||||
|
|||||||
Reference in New Issue
Block a user