mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-26 11:28:49 +01:00
This commit is contained in:
parent
7966d189fd
commit
f2c1c8e0ad
1 changed files with 3 additions and 9 deletions
|
|
@ -58,7 +58,7 @@ export const setGalleryCover = (options: {
|
|||
if (item.type === "mAsset") {
|
||||
menu.addItem({
|
||||
iconHTML: "",
|
||||
checked: options.view.coverFromAssetKeyID === item.id,
|
||||
checked: options.view.coverFrom === 2 && options.view.coverFromAssetKeyID === item.id,
|
||||
label: item.name,
|
||||
click() {
|
||||
transaction(options.protyle, [{
|
||||
|
|
@ -180,12 +180,6 @@ export const openGalleryItemMenu = (options: {
|
|||
}) => {
|
||||
const menu = new Menu();
|
||||
const avID = options.blockElement.getAttribute("data-av-id");
|
||||
menu.addItem({
|
||||
icon: "iconCopy",
|
||||
label: window.siyuan.languages.duplicate,
|
||||
click() {
|
||||
}
|
||||
});
|
||||
menu.addItem({
|
||||
icon: "iconTrashcan",
|
||||
warning: true,
|
||||
|
|
@ -213,12 +207,12 @@ export const openGalleryItemMenu = (options: {
|
|||
content: blockValue.block.content
|
||||
}],
|
||||
blockID: options.blockElement.dataset.nodeId
|
||||
},{
|
||||
}, {
|
||||
action: "doUpdateUpdated",
|
||||
id: options.blockElement.dataset.nodeId,
|
||||
data: options.blockElement.getAttribute("updated")
|
||||
}]);
|
||||
cardElement.remove()
|
||||
cardElement.remove();
|
||||
options.blockElement.setAttribute("updated", newUpdated);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue