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>
|
||||||
<div class="filter-menu-options">
|
<div class="filter-menu-options">
|
||||||
<h2 class="title">{{ $t('filter-menu.order-by') }}</h2>
|
<h2 class="title">{{ $t('filter-menu.order-by') }}</h2>
|
||||||
<date-sort-filter />
|
<order-by-Filter />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</dropdown>
|
</dropdown>
|
||||||
@ -27,13 +27,13 @@
|
|||||||
import Dropdown from '~/components/Dropdown'
|
import Dropdown from '~/components/Dropdown'
|
||||||
import { mapGetters } from 'vuex'
|
import { mapGetters } from 'vuex'
|
||||||
import FollowingFilter from './FollowingFilter'
|
import FollowingFilter from './FollowingFilter'
|
||||||
import DateSortFilter from './DateSortFilter'
|
import OrderByFilter from './OrderByFilter'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
Dropdown,
|
Dropdown,
|
||||||
FollowingFilter,
|
FollowingFilter,
|
||||||
DateSortFilter,
|
OrderByFilter,
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
placement: { type: String },
|
placement: { type: String },
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<filter-menu-section :divider="false" class="date-sort-filter">
|
<filter-menu-section :divider="false" class="order-by-Filter">
|
||||||
<template #filter-list>
|
<template #filter-list>
|
||||||
<li class="item">
|
<li class="item">
|
||||||
<labeled-button
|
<labeled-button
|
||||||
@ -29,7 +29,7 @@ import FilterMenuSection from '~/components/FilterMenu/FilterMenuSection'
|
|||||||
import LabeledButton from '~/components/_new/generic/LabeledButton/LabeledButton'
|
import LabeledButton from '~/components/_new/generic/LabeledButton/LabeledButton'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'DateSortFilter',
|
name: 'OrderByFilter',
|
||||||
components: {
|
components: {
|
||||||
FilterMenuSection,
|
FilterMenuSection,
|
||||||
LabeledButton,
|
LabeledButton,
|
||||||
@ -19,7 +19,7 @@ describe('PostIndex', () => {
|
|||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
mutations = {
|
mutations = {
|
||||||
'posts/SELECT_ORDER': jest.fn(),
|
'posts/TOGGLE_ORDER': jest.fn(),
|
||||||
}
|
}
|
||||||
store = new Vuex.Store({
|
store = new Vuex.Store({
|
||||||
getters: {
|
getters: {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user