mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-03 11:20:16 +01:00
This commit is contained in:
parent
09fb905764
commit
7bbbc8ae32
5 changed files with 125 additions and 115 deletions
|
|
@ -174,7 +174,7 @@ export const AIActions = (elements: Element[], protyle: IProtyle) => {
|
|||
if (customHTML) {
|
||||
customHTML = `<div class="b3-menu__separator"></div>${customHTML}`;
|
||||
}
|
||||
const clearContext = "Clear context"
|
||||
const clearContext = "Clear context";
|
||||
menu.addItem({
|
||||
iconHTML: "",
|
||||
type: "empty",
|
||||
|
|
@ -237,7 +237,7 @@ export const AIActions = (elements: Element[], protyle: IProtyle) => {
|
|||
fillContent(protyle, response.data, elements);
|
||||
});
|
||||
if (currentElement.dataset.action === clearContext) {
|
||||
showMessage(window.siyuan.languages.clearContextSucc)
|
||||
showMessage(window.siyuan.languages.clearContextSucc);
|
||||
} else {
|
||||
menu.close();
|
||||
}
|
||||
|
|
@ -272,7 +272,7 @@ export const AIActions = (elements: Element[], protyle: IProtyle) => {
|
|||
fillContent(protyle, response.data, elements);
|
||||
});
|
||||
if (target.dataset.action === clearContext) {
|
||||
showMessage(window.siyuan.languages.clearContextSucc)
|
||||
showMessage(window.siyuan.languages.clearContextSucc);
|
||||
} else {
|
||||
menu.close();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue