fix review

This commit is contained in:
ogerly 2022-09-22 18:42:58 +02:00
parent 1af5ce9e30
commit 858739eaa0
3 changed files with 4 additions and 10 deletions

View File

@ -121,7 +121,7 @@ describe('Location Service', () => {
const result = await query({ query: queryLocations, variables })
expect(result.data.queryLocations).toEqual(
expect.arrayContaining([
{ id: 'place.14094307404564380', place_name: 'Berlin, Germany' },
{ id: expect.stringMatching(/^place\.[0-9]+$/), place_name: 'Berlin, Germany' },
{
id: expect.stringMatching(/^place\.[0-9]+$/),
place_name: 'Berlin, Maryland, United States',

View File

@ -374,4 +374,4 @@ $color-footer-link: $color-primary;
* @tokens Locale Menu Color
*/
$color-locale-menu: $text-color-soft;
$color-locale-menu: $text-color-soft;

View File

@ -1,13 +1,6 @@
<template>
<dropdown ref="category-menu" placement="top-start" :offset="8" class="category-menu">
<a
href="#"
slot="default"
:filled="filterActive"
:ghost="!filterActive"
slot-scope="{ toggleMenu }"
@click.prevent="toggleMenu()"
>
<a href="#" slot="default" slot-scope="{ toggleMenu }" @click.prevent="toggleMenu()">
<ds-text bold size="large">{{ $t('admin.categories.name') }}</ds-text>
</a>
<template slot="popover">
@ -41,6 +34,7 @@ export default {
},
computed: {
...mapGetters({
// TODO: implement visibility of active filter later on
filterActive: 'posts/isActive',
}),
},