diff --git a/app/src/protyle/hint/extend.ts b/app/src/protyle/hint/extend.ts
index c50b4b7ad..d7a34d477 100644
--- a/app/src/protyle/hint/extend.ts
+++ b/app/src/protyle/hint/extend.ts
@@ -20,6 +20,7 @@ import {hideElements} from "../ui/hideElements";
import {genAssetHTML} from "../../asset/renderAssets";
import {unicode2Emoji} from "../../emoji";
import {avRender} from "../render/av/render";
+import {needSubscribe} from "../../util/needSubscribe";
export const hintSlash = (key: string, protyle: IProtyle) => {
const allList: IHintData[] = [{
@@ -46,11 +47,15 @@ export const hintSlash = (key: string, protyle: IProtyle) => {
filter: ["ai chat"],
value: Constants.ZWSP + 5,
html: '
AI Chat
',
- }, {
- filter: ["数据库", "属性视图", "shujuku", "shuxingshitu", "sjk", "sxst", "database", "attribute view"],
- value: '',
- html: `${window.siyuan.languages.database}
`,
- }, {
+ }]
+ if (!needSubscribe("")) {
+ allList.push({
+ filter: ["数据库", "属性视图", "shujuku", "shuxingshitu", "sjk", "sxst", "database", "attribute view"],
+ value: '',
+ html: `${window.siyuan.languages.database}
`,
+ })
+ }
+ [{
filter: ["文档", "子文档", "wendang", "wd", "ziwendang", "zwd", "xjwd"],
value: Constants.ZWSP + 4,
html: `${window.siyuan.languages.newFile}
`,
@@ -246,7 +251,9 @@ export const hintSlash = (key: string, protyle: IProtyle) => {
filter: ["移除样式", "yichuyangshi", "ycys", "remove style"],
value: `style${Constants.ZWSP}`,
html: `A
${window.siyuan.languages.clearFontStyle} `,
- }];
+ }].forEach(item => {
+ allList.push(item);
+ });
allList.push({
value: "",
html: "separator",