mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-13 07:56:14 +01:00
This commit is contained in:
parent
1cca66f9bb
commit
9d89e28e4e
4 changed files with 12 additions and 2 deletions
|
|
@ -34,7 +34,7 @@ ${window.siyuan.languages.account2}
|
|||
<span class="b3-chip b3-chip--primary fn__pointer" id="trialSub">
|
||||
<svg class="ft__secondary"><use xlink:href="#iconVIP"></use></svg>
|
||||
${window.siyuan.languages.freeSub}
|
||||
</>
|
||||
</span>
|
||||
<div class="fn__hr--b"></div>`;
|
||||
if (window.siyuan.user) {
|
||||
let userTitlesHTML = "";
|
||||
|
|
@ -368,6 +368,9 @@ ${window.siyuan.languages.account8}`;
|
|||
}
|
||||
}
|
||||
}
|
||||
if (!window.siyuan.user || (window.siyuan.user && window.siyuan.user.userSiYuanSubscriptionStatus === -1)){
|
||||
html = `<div class="toolbar__item b3-tooltips b3-tooltips__se" aria-label="${window.siyuan.languages.freeSub}"><svg class="ft__error"><use xlink:href="#iconVIP"></use></svg></div>`;
|
||||
}
|
||||
if (window.siyuan.config.account.displayTitle && window.siyuan.user) {
|
||||
window.siyuan.user.userTitles.forEach(item => {
|
||||
html += `<div class="toolbar__item fn__a b3-tooltips b3-tooltips__se" aria-label="${item.name}:${item.desc}">${item.icon}</div>`;
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ export const openSetting = () => {
|
|||
}
|
||||
});
|
||||
if (exitDialog) {
|
||||
return;
|
||||
return exitDialog;
|
||||
}
|
||||
const height = Math.min(window.innerHeight * .9, Math.max(window.innerHeight * .7, 52 * 11));
|
||||
const dialog = new Dialog({
|
||||
|
|
@ -128,4 +128,5 @@ export const openSetting = () => {
|
|||
});
|
||||
editor.element = dialog.element.querySelector('.b3-tab-container[data-name="editor"]');
|
||||
editor.bindEvent();
|
||||
return dialog;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue