mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 00:50:13 +01:00
This commit is contained in:
parent
e6a88e2ad2
commit
17b5e9acdc
2 changed files with 4 additions and 2 deletions
|
|
@ -94,11 +94,13 @@ export class Gutter {
|
|||
return true;
|
||||
}
|
||||
});
|
||||
if (avElement.querySelector('.block__icon[data-type="av-sort"]')?.classList.contains("block__icon--active")) {
|
||||
if (avElement.querySelector('.block__icon[data-type="av-sort"]')?.classList.contains("block__icon--active") ||
|
||||
["template", "created", "updated"].includes(avElement.querySelector(".av__group-title")?.getAttribute("data-dtype"))) {
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
return;
|
||||
}
|
||||
|
||||
const rowElement = avElement.querySelector(`.av__row[data-id="${buttonElement.dataset.rowId}"]`);
|
||||
if (!rowElement.classList.contains("av__row--select")) {
|
||||
avElement.querySelectorAll(".av__row--select:not(.av__row--header)").forEach(item => {
|
||||
|
|
|
|||
|
|
@ -234,7 +234,7 @@ export const getGroupTitleHTML = (group: IAVView, counter: number) => {
|
|||
} else {
|
||||
nameHTML = group.name;
|
||||
}
|
||||
return `<div class="av__group-title">
|
||||
return `<div class="av__group-title" data-dtype="${group.groupValue.type}">
|
||||
<div class="av__group-icon" data-type="av-group-fold" data-id="${group.id}">
|
||||
<svg class="${group.groupFolded ? "" : "av__group-arrow--open"}"><use xlink:href="#iconRight"></use></svg>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue