mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
fixed linting
This commit is contained in:
parent
084b14608d
commit
57cf245b71
@ -4,7 +4,7 @@ import CategoriesFilter from './CategoriesFilter'
|
|||||||
|
|
||||||
const localVue = global.localVue
|
const localVue = global.localVue
|
||||||
|
|
||||||
let wrapper, environmentAndNatureButton, democracyAndPoliticsButton
|
let wrapper, environmentAndNatureButton
|
||||||
|
|
||||||
describe('CategoriesFilter.vue', () => {
|
describe('CategoriesFilter.vue', () => {
|
||||||
const mutations = {
|
const mutations = {
|
||||||
|
|||||||
@ -37,13 +37,11 @@
|
|||||||
import { mapGetters, mapMutations } from 'vuex'
|
import { mapGetters, mapMutations } from 'vuex'
|
||||||
import CategoryQuery from '~/graphql/CategoryQuery.js'
|
import CategoryQuery from '~/graphql/CategoryQuery.js'
|
||||||
import FilterMenuSection from '~/components/FilterMenu/FilterMenuSection'
|
import FilterMenuSection from '~/components/FilterMenu/FilterMenuSection'
|
||||||
import LabeledButton from '~/components/_new/generic/LabeledButton/LabeledButton'
|
|
||||||
import SortCategories from '~/mixins/sortCategoriesMixin.js'
|
import SortCategories from '~/mixins/sortCategoriesMixin.js'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
FilterMenuSection,
|
FilterMenuSection,
|
||||||
LabeledButton,
|
|
||||||
},
|
},
|
||||||
mixins: [SortCategories],
|
mixins: [SortCategories],
|
||||||
data() {
|
data() {
|
||||||
|
|||||||
@ -9,7 +9,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<post-type-filter />
|
<post-type-filter />
|
||||||
<following-filter />
|
<following-filter />
|
||||||
<categories-filter v-if="categoriesActive" @showFilterMenu="$emit('showFilterMenu')" @updateCategories="updateCategories" />
|
<categories-filter v-if="categoriesActive" @showFilterMenu="$emit('showFilterMenu')" />
|
||||||
</div>
|
</div>
|
||||||
<div v-if="eventSetInPostTypeFilter" class="filter-menu-options">
|
<div v-if="eventSetInPostTypeFilter" class="filter-menu-options">
|
||||||
<h2 class="title">{{ $t('filter-menu.eventsBy') }}</h2>
|
<h2 class="title">{{ $t('filter-menu.eventsBy') }}</h2>
|
||||||
@ -39,7 +39,7 @@ export default {
|
|||||||
OrderByFilter,
|
OrderByFilter,
|
||||||
CategoriesFilter,
|
CategoriesFilter,
|
||||||
PostTypeFilter,
|
PostTypeFilter,
|
||||||
LabeledButton
|
LabeledButton,
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@ -56,9 +56,6 @@ export default {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
updateCategories(newCatId){
|
|
||||||
console.log(newCatId);
|
|
||||||
},
|
|
||||||
saveCategories() {
|
saveCategories() {
|
||||||
this.$apollo
|
this.$apollo
|
||||||
.mutate({
|
.mutate({
|
||||||
@ -72,8 +69,8 @@ export default {
|
|||||||
.catch(() => {
|
.catch(() => {
|
||||||
this.$toast.error(this.$t('filter-menu.save.error'))
|
this.$toast.error(this.$t('filter-menu.save.error'))
|
||||||
})
|
})
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user