Skip to content

Commit

Permalink
🎨 fix #7728
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanessa219 authored and 88250 committed Mar 28, 2023
1 parent f83a07f commit c16945e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions app/src/layout/dock/Inbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ import {MenuItem} from "../../menus/Menu";
import {hasClosestByAttribute, hasClosestByClassName} from "../../protyle/util/hasClosest";
import {confirmDialog} from "../../dialog/confirmDialog";
import {replaceFileName} from "../../editor/rename";
import {escapeHtml} from "../../util/escape";
import {unicode2Emoji} from "../../emoji";
import {Constants} from "../../constants";

export class Inbox extends Model {
private element: Element;
Expand Down Expand Up @@ -134,7 +137,8 @@ ${(Lute.New()).MarkdownStr("", response.data.shorthandContent)}
window.siyuan.notebooks.forEach((item) => {
if (!item.closed) {
window.siyuan.menus.menu.append(new MenuItem({
label: item.name,
iconHTML: `${unicode2Emoji(item.icon || Constants.SIYUAN_IMAGE_NOTE, false, "b3-menu__icon", true)}`,
label: escapeHtml(item.name),
click: () => {
this.move(item.id, detailsElement.getAttribute("data-id"));
}
Expand Down Expand Up @@ -210,7 +214,8 @@ ${(Lute.New()).MarkdownStr("", data.shorthandContent)}
window.siyuan.notebooks.forEach((item) => {
if (!item.closed) {
submenu.push({
label: item.name,
iconHTML: `${unicode2Emoji(item.icon || Constants.SIYUAN_IMAGE_NOTE, false, "b3-menu__icon", true)}`,
label: escapeHtml(item.name),
click: () => {
this.move(item.id);
}
Expand Down

0 comments on commit c16945e

Please sign in to comment.