Rename newsfeed sorting to ordered by

- Fix a test.
This commit is contained in:
Wolfgang Huß 2021-04-13 10:16:51 +02:00
parent 7888d93a7f
commit c2cf89447b
3 changed files with 6 additions and 6 deletions

View File

@ -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 },

View File

@ -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,

View File

@ -19,7 +19,7 @@ describe('PostIndex', () => {
beforeEach(() => {
mutations = {
'posts/SELECT_ORDER': jest.fn(),
'posts/TOGGLE_ORDER': jest.fn(),
}
store = new Vuex.Store({
getters: {