Skip to content

Commit

Permalink
Added search button #1070
Browse files Browse the repository at this point in the history
  • Loading branch information
jlpereira committed Sep 23, 2019
1 parent 8a35519 commit ede7022
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
@rankSelected="ranks = $event"
@onTaxon="taxon = $event"
@onValidity="validity = $event"
@reset="resetTask"/>
@reset="resetTask"
@onSearch="loadRankTable"/>
<div class="full_width">
<div
v-show="Object.keys(rankTable).length"
Expand Down Expand Up @@ -99,7 +100,7 @@ export default {
ranks: {
handler (newVal) {
if (newVal.length) {
this.loadRankTable()
//this.loadRankTable()
}
},
deep: true
Expand All @@ -114,7 +115,7 @@ export default {
},
combination (newVal) {
if (this.taxon) {
this.loadRankTable()
//this.loadRankTable()
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@
v-if="searching"
/>
<div class="content">
<button
class="button normal-input button-default full_width"
type="button"
@click="$emit('onSearch')">
Search
</button>
<taxon-name v-model="taxonName"/>
<otu-filter v-model="validity"/>
<combinations-filter/>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div>
<h3>Combinations</h3>
<h2>Combinations</h2>
<label>
<input
type="checkbox"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div>
<h3>Otu</h3>
<h2>Otu</h2>
<label>
<input
type="checkbox"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div v-if="taxonName">
<h3>Select ranks</h3>
<h2>Select ranks</h2>
<template
v-for="(group, key, index) in ranks[taxonName.nomenclatural_code]">
<div
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div>
<h3>Taxon name</h3>
<h2>Taxon name</h2>
<div class="field">
<autocomplete
class="fill_width"
Expand Down

0 comments on commit ede7022

Please sign in to comment.