mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-04 15:58:49 +01:00
This commit is contained in:
parent
99ad5a0f77
commit
425882cda0
2 changed files with 4 additions and 2 deletions
|
|
@ -75,7 +75,7 @@ ${html}
|
|||
</div>`;
|
||||
};
|
||||
|
||||
const getLanguageByIndex = (index: number, type: "sort" | "date") => {
|
||||
export const getLanguageByIndex = (index: number, type: "sort" | "date") => {
|
||||
if (type === "sort") {
|
||||
switch (index) {
|
||||
case 0:
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ import {setGalleryCover, setGalleryRatio, setGallerySize} from "./gallery/util";
|
|||
import {
|
||||
bindGroupsEvent, bindGroupsNumber,
|
||||
getGroupsHTML,
|
||||
getGroupsMethodHTML, getGroupsNumberHTML,
|
||||
getGroupsMethodHTML, getGroupsNumberHTML, getLanguageByIndex,
|
||||
goGroupsDate,
|
||||
goGroupsSort,
|
||||
setGroupMethod
|
||||
|
|
@ -486,6 +486,8 @@ export const openMenuPanel = (options: {
|
|||
previousID: undoPreviousID,
|
||||
id: sourceId,
|
||||
}]);
|
||||
menuElement.querySelector('[data-type="goGroupsSort"] .b3-menu__accelerator').textContent = getLanguageByIndex(2, "sort");
|
||||
data.view.group.order = 2;
|
||||
data.view.groups.find((group, index) => {
|
||||
if (group.id === sourceId) {
|
||||
const groupData = data.view.groups.splice(index, 1)[0];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue