Merge branch 'issue-269' into 'master'

Disable search button if search field is empty

Closes #269

See merge request framasoft/mobilizon!309
This commit is contained in:
Thomas Citharel 2019-11-07 16:57:41 +01:00
commit 714cd45e16

View File

@ -7,7 +7,7 @@
<b-field :label="$t('Event')" grouped label-position="on-border">
<b-input icon="magnify" type="search" size="is-large" expanded v-model="searchTerm" :placeholder="$t('For instance: London, Taekwondo, Architecture…')" />
<p class="control">
<b-button @click="submit" type="is-info" size="is-large">{{ $t('Search') }}</b-button>
<b-button @click="submit" type="is-info" size="is-large" v-bind:disabled="searchTerm.trim().length === 0">{{ $t('Search') }}</b-button>
</p>
</b-field>
</form>