mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
Rename newsfeed sorting to ordered by
- Fix a test.
This commit is contained in:
parent
7888d93a7f
commit
c2cf89447b
@ -17,7 +17,7 @@
|
||||
</div>
|
||||
<div class="filter-menu-options">
|
||||
<h2 class="title">{{ $t('filter-menu.order-by') }}</h2>
|
||||
<date-sort-filter />
|
||||
<order-by-Filter />
|
||||
</div>
|
||||
</template>
|
||||
</dropdown>
|
||||
@ -27,13 +27,13 @@
|
||||
import Dropdown from '~/components/Dropdown'
|
||||
import { mapGetters } from 'vuex'
|
||||
import FollowingFilter from './FollowingFilter'
|
||||
import DateSortFilter from './DateSortFilter'
|
||||
import OrderByFilter from './OrderByFilter'
|
||||
|
||||
export default {
|
||||
components: {
|
||||
Dropdown,
|
||||
FollowingFilter,
|
||||
DateSortFilter,
|
||||
OrderByFilter,
|
||||
},
|
||||
props: {
|
||||
placement: { type: String },
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<filter-menu-section :divider="false" class="date-sort-filter">
|
||||
<filter-menu-section :divider="false" class="order-by-Filter">
|
||||
<template #filter-list>
|
||||
<li class="item">
|
||||
<labeled-button
|
||||
@ -29,7 +29,7 @@ import FilterMenuSection from '~/components/FilterMenu/FilterMenuSection'
|
||||
import LabeledButton from '~/components/_new/generic/LabeledButton/LabeledButton'
|
||||
|
||||
export default {
|
||||
name: 'DateSortFilter',
|
||||
name: 'OrderByFilter',
|
||||
components: {
|
||||
FilterMenuSection,
|
||||
LabeledButton,
|
||||
@ -19,7 +19,7 @@ describe('PostIndex', () => {
|
||||
|
||||
beforeEach(() => {
|
||||
mutations = {
|
||||
'posts/SELECT_ORDER': jest.fn(),
|
||||
'posts/TOGGLE_ORDER': jest.fn(),
|
||||
}
|
||||
store = new Vuex.Store({
|
||||
getters: {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user