Prevent image manager search from reloading page

Fixes #697
This commit is contained in:
Dan Brown 2018-02-04 17:18:55 +00:00
parent b7e5cc6763
commit 7c44f5462c
No known key found for this signature in database
GPG Key ID: 46D9F943C24A2EF9

View File

@ -18,7 +18,7 @@
</div>
</div>
<div v-show="view === 'all'" >
<form @submit="searchImages" class="contained-search-box">
<form @submit.prevent="searchImages" class="contained-search-box">
<input placeholder="{{ trans('components.image_search_hint') }}" v-model="searchTerm">
<button :class="{active: searching}" title="{{ trans('common.search_clear') }}" type="button" @click="cancelSearch()" class="text-button cancel"><i class="zmdi zmdi-close-circle-o"></i></button>
<button title="{{ trans('common.search') }}" class="text-button"><i class="zmdi zmdi-search"></i></button>