mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-26 10:16:10 +01:00
This commit is contained in:
parent
a31e79001e
commit
d75fac21aa
2 changed files with 4 additions and 2 deletions
|
|
@ -345,7 +345,9 @@ export const goGroupsSort = (options: {
|
|||
}
|
||||
const blockID = options.blockElement.getAttribute("data-node-id");
|
||||
const column = getFieldsByData(options.data).find(item => item.id === options.data.view.group.field);
|
||||
(["created", "date", "created", "updated"].includes(column.type) ? [0, 1] : [2, 0, 1]).forEach((item) => {
|
||||
(["created", "date", "created", "updated"].includes(column.type) ? [0, 1] : (
|
||||
["mSelect", "select"].includes(column.type) ? [2, 0, 1, 3] : [2, 0, 1]
|
||||
)).forEach((item) => {
|
||||
const label = getLanguageByIndex(item, "sort");
|
||||
menu.addItem({
|
||||
iconHTML: "",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue