Skip to content
Snippets Groups Projects
Commit 2a38faa6 authored by Timothee P's avatar Timothee P :sunflower:
Browse files

add tests for browsing features filtered

parent d37e0b52
No related branches found
No related tags found
No related merge requests found
......@@ -40,7 +40,7 @@
<div :class="['menu', { 'visible transition': isOpen }]">
<div
v-for="(option, index) in filteredOptions || ['No results found.']"
:id="option.name && Array.isArray(option.name) ? option.name[0] : option.name"
:id="option.name && Array.isArray(option.name) ? option.name[0] : option.name || option"
:key="option + index"
:class="[
filteredOptions ? 'item' : 'message',
......
......@@ -13,6 +13,7 @@
</div>
<div class="ui secondary menu no-margin">
<a
id="show-map"
:class="['item no-margin', { active: showMap }]"
data-tab="map"
data-tooltip="Carte"
......@@ -25,6 +26,7 @@
/>
</a>
<a
id="show-list"
:class="['item no-margin', { active: !showMap }]"
data-tab="list"
data-tooltip="Liste"
......@@ -134,7 +136,10 @@
id="form-filters"
class="ui form grid equal width"
>
<div class="field column">
<div
id="type"
class="field column"
>
<label>Type</label>
<Dropdown
:options="featureTypeChoices"
......@@ -144,7 +149,10 @@
:clearable="true"
/>
</div>
<div class="field column">
<div
id="statut"
class="field column"
>
<label>Statut</label>
<!-- //* giving an object mapped on key name -->
<Dropdown
......@@ -155,7 +163,10 @@
:clearable="true"
/>
</div>
<div class="field column">
<div
id="name"
class="field column"
>
<label>Nom</label>
<div class="ui icon input">
<i
......
......@@ -76,6 +76,7 @@
/>
<div
id="features-list"
class="ui button fluid teal"
@click="$router.push({
name: 'liste-signalements',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment