mirror of
https://github.com/wassname/talk.git
synced 2026-06-30 04:04:04 +08:00
20 lines
454 B
JavaScript
20 lines
454 B
JavaScript
import translations from './translations.yml';
|
|
import { createSortOption } from 'plugin-api/beta/client/factories';
|
|
import { t } from 'plugin-api/beta/client/services';
|
|
|
|
const SortOption = createSortOption(() => t('talk-plugin-sort-newest.label'), {
|
|
sortBy: 'CREATED_AT',
|
|
sortOrder: 'DESC',
|
|
});
|
|
|
|
/**
|
|
* This plugin depends on talk-plugin-viewing-options.
|
|
*/
|
|
|
|
export default {
|
|
translations,
|
|
slots: {
|
|
viewingOptionsSort: [SortOption],
|
|
},
|
|
};
|