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 @@ ...@@ -40,7 +40,7 @@
<div :class="['menu', { 'visible transition': isOpen }]"> <div :class="['menu', { 'visible transition': isOpen }]">
<div <div
v-for="(option, index) in filteredOptions || ['No results found.']" 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" :key="option + index"
:class="[ :class="[
filteredOptions ? 'item' : 'message', filteredOptions ? 'item' : 'message',
......
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
</div> </div>
<div class="ui secondary menu no-margin"> <div class="ui secondary menu no-margin">
<a <a
id="show-map"
:class="['item no-margin', { active: showMap }]" :class="['item no-margin', { active: showMap }]"
data-tab="map" data-tab="map"
data-tooltip="Carte" data-tooltip="Carte"
...@@ -25,6 +26,7 @@ ...@@ -25,6 +26,7 @@
/> />
</a> </a>
<a <a
id="show-list"
:class="['item no-margin', { active: !showMap }]" :class="['item no-margin', { active: !showMap }]"
data-tab="list" data-tab="list"
data-tooltip="Liste" data-tooltip="Liste"
...@@ -134,7 +136,10 @@ ...@@ -134,7 +136,10 @@
id="form-filters" id="form-filters"
class="ui form grid equal width" class="ui form grid equal width"
> >
<div class="field column"> <div
id="type"
class="field column"
>
<label>Type</label> <label>Type</label>
<Dropdown <Dropdown
:options="featureTypeChoices" :options="featureTypeChoices"
...@@ -144,7 +149,10 @@ ...@@ -144,7 +149,10 @@
:clearable="true" :clearable="true"
/> />
</div> </div>
<div class="field column"> <div
id="statut"
class="field column"
>
<label>Statut</label> <label>Statut</label>
<!-- //* giving an object mapped on key name --> <!-- //* giving an object mapped on key name -->
<Dropdown <Dropdown
...@@ -155,7 +163,10 @@ ...@@ -155,7 +163,10 @@
:clearable="true" :clearable="true"
/> />
</div> </div>
<div class="field column"> <div
id="name"
class="field column"
>
<label>Nom</label> <label>Nom</label>
<div class="ui icon input"> <div class="ui icon input">
<i <i
......
...@@ -76,6 +76,7 @@ ...@@ -76,6 +76,7 @@
/> />
<div <div
id="features-list"
class="ui button fluid teal" class="ui button fluid teal"
@click="$router.push({ @click="$router.push({
name: 'liste-signalements', 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