Skip to content

Commit

Permalink
♻️ #10138
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanessa219 committed Jan 10, 2024
1 parent 291211b commit 98f2b4d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
4 changes: 0 additions & 4 deletions app/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,12 +148,8 @@ export abstract class Constants {
public static readonly DIALOG_SYNCCHOOSEDIRECTION = "dialog-syncchoosedirection"; // 选择云端同步方向
public static readonly DIALOG_TRANSFERBLOCKREF = "dialog-transferblockref"; // 转移引用
public static readonly DIALOG_WECHATREMINDER = "dialog-wechatreminder"; // 微信提醒

public static readonly DIALOG_PASSWORD = "dialog-password"; // 导入同步密钥
public static readonly DIALOG_SETPASSWORD = "dialog-setpassword"; // 设置同步密钥
public static readonly DIALOG_BOOTSYNCFAILED = "dialog-bootsyncfailed"; // 启动时同步数据失败
public static readonly DIALOG_KERNELFAULT = "dialog-kernelfault"; // 内核退出
public static readonly DIALOG_STATEEXCEPTED = "dialog-stateexcepted"; // 状态异常
public static readonly DIALOG_ATTR = "dialog-attr"; // 设置块属性
public static readonly DIALOG_SETCUSTOMATTR = "dialog-setcustomattr"; // 设置自定义属性
public static readonly DIALOG_CREATENOTEBOOK = "dialog-createnotebook"; // 创建笔记本
Expand Down
6 changes: 2 additions & 4 deletions app/src/menus/onGetnotebookconf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ export const onGetnotebookconf = (data: INotebookConf) => {
<div class="fn__hr"></div>
<input class="b3-text-field fn__flex-center fn__block" id="dailyNoteTemplatePath" value="${data.conf.dailyNoteTemplatePath}">
</div></div>`;
let contentElement;
if (isMobile()) {
openModel({
title: titleHTML,
Expand All @@ -64,9 +63,8 @@ export const onGetnotebookconf = (data: INotebookConf) => {
title: titleHTML,
content: contentHTML
});
contentElement = dialog.element;
contentElement.setAttribute("data-key", Constants.DIALOG_NOTEBOOKCONF);
bindSettingEvent(contentElement, data);
dialog.element.setAttribute("data-key", Constants.DIALOG_NOTEBOOKCONF);
bindSettingEvent(dialog.element, data);
}
};

Expand Down

0 comments on commit 98f2b4d

Please sign in to comment.