Merge branch 'develop' into fix-14783
This commit is contained in:
commit
2bebc721f1
2 changed files with 45 additions and 0 deletions
|
|
@ -6,6 +6,7 @@
|
|||
### Client
|
||||
- Enhance: Bull DashboardでRelationship Queueの状態も確認できるように
|
||||
(Cherry-picked from https://github.com/MisskeyIO/misskey/pull/751)
|
||||
- Enhance: ドライブでソートができるように
|
||||
- Fix: 通知の範囲指定の設定項目が必要ない通知設定でも範囲指定の設定がでている問題を修正
|
||||
|
||||
### Server
|
||||
|
|
|
|||
|
|
@ -157,7 +157,12 @@ const ilFilesObserver = new IntersectionObserver(
|
|||
(entries) => entries.some((entry) => entry.isIntersecting) && !fetching.value && moreFiles.value && fetchMoreFiles(),
|
||||
);
|
||||
|
||||
const sortModeSelect = ref('+createdAt');
|
||||
|
||||
watch(folder, () => emit('cd', folder.value));
|
||||
watch(sortModeSelect, () => {
|
||||
fetch();
|
||||
});
|
||||
|
||||
function onStreamDriveFileCreated(file: Misskey.entities.DriveFile) {
|
||||
addFile(file, true);
|
||||
|
|
@ -558,6 +563,7 @@ async function fetch() {
|
|||
folderId: folder.value ? folder.value.id : null,
|
||||
type: props.type,
|
||||
limit: filesMax + 1,
|
||||
sort: sortModeSelect.value,
|
||||
}).then(fetchedFiles => {
|
||||
if (fetchedFiles.length === filesMax + 1) {
|
||||
moreFiles.value = true;
|
||||
|
|
@ -607,6 +613,7 @@ function fetchMoreFiles() {
|
|||
type: props.type,
|
||||
untilId: files.value.at(-1)?.id,
|
||||
limit: max + 1,
|
||||
sort: sortModeSelect.value,
|
||||
}).then(files => {
|
||||
if (files.length === max + 1) {
|
||||
moreFiles.value = true;
|
||||
|
|
@ -642,6 +649,43 @@ function getMenu() {
|
|||
type: 'label',
|
||||
});
|
||||
|
||||
menu.push({
|
||||
type: 'parent',
|
||||
text: i18n.ts.sort,
|
||||
icon: 'ti ti-arrows-sort',
|
||||
children: [{
|
||||
text: `${i18n.ts.registeredDate} (${i18n.ts.descendingOrder})`,
|
||||
icon: 'ti ti-sort-descending-letters',
|
||||
action: () => { sortModeSelect.value = '+createdAt'; },
|
||||
active: sortModeSelect.value === '+createdAt',
|
||||
}, {
|
||||
text: `${i18n.ts.registeredDate} (${i18n.ts.ascendingOrder})`,
|
||||
icon: 'ti ti-sort-ascending-letters',
|
||||
action: () => { sortModeSelect.value = '-createdAt'; },
|
||||
active: sortModeSelect.value === '-createdAt',
|
||||
}, {
|
||||
text: `${i18n.ts.size} (${i18n.ts.descendingOrder})`,
|
||||
icon: 'ti ti-sort-descending-letters',
|
||||
action: () => { sortModeSelect.value = '+size'; },
|
||||
active: sortModeSelect.value === '+size',
|
||||
}, {
|
||||
text: `${i18n.ts.size} (${i18n.ts.ascendingOrder})`,
|
||||
icon: 'ti ti-sort-ascending-letters',
|
||||
action: () => { sortModeSelect.value = '-size'; },
|
||||
active: sortModeSelect.value === '-size',
|
||||
}, {
|
||||
text: `${i18n.ts.name} (${i18n.ts.descendingOrder})`,
|
||||
icon: 'ti ti-sort-descending-letters',
|
||||
action: () => { sortModeSelect.value = '+name'; },
|
||||
active: sortModeSelect.value === '+name',
|
||||
}, {
|
||||
text: `${i18n.ts.name} (${i18n.ts.ascendingOrder})`,
|
||||
icon: 'ti ti-sort-ascending-letters',
|
||||
action: () => { sortModeSelect.value = '-name'; },
|
||||
active: sortModeSelect.value === '-name',
|
||||
}],
|
||||
});
|
||||
|
||||
if (folder.value) {
|
||||
menu.push({
|
||||
text: i18n.ts.renameFolder,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue