mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-18 21:18:07 +01:00
📝 Improve text (#16135)
This commit is contained in:
parent
33192d1404
commit
c4cd4ca652
2 changed files with 9 additions and 6 deletions
|
|
@ -129,6 +129,7 @@ export const openTitleMenu = (protyle: IProtyle, position: IPosition) => {
|
|||
}
|
||||
}).element);
|
||||
}
|
||||
const isCardMade = !!response.data.ial[Constants.CUSTOM_RIFF_DECKS];
|
||||
const riffCardMenu: IMenu[] = [{
|
||||
id: "spaceRepetition",
|
||||
iconHTML: "",
|
||||
|
|
@ -151,9 +152,9 @@ export const openTitleMenu = (protyle: IProtyle, position: IPosition) => {
|
|||
});
|
||||
}
|
||||
}, {
|
||||
id: "quickMakeCard",
|
||||
id: isCardMade ? "removeCard" : "quickMakeCard",
|
||||
iconHTML: "",
|
||||
label: window.siyuan.languages.quickMakeCard,
|
||||
label: isCardMade ? window.siyuan.languages.removeCard : window.siyuan.languages.quickMakeCard,
|
||||
accelerator: window.siyuan.config.keymap.editor.general.quickMakeCard.custom,
|
||||
click: () => {
|
||||
let titleElement = protyle.title?.element;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue