added search button for users admin page

This commit is contained in:
Čarodej
2021-12-01 09:42:47 +01:00
parent b08662b307
commit dd3e477593
6 changed files with 391 additions and 431 deletions
@@ -302,8 +302,9 @@ export default {
}
},
created() {
events.$on('spotlight:show', () => {
events.$on('spotlight:show', filter => {
this.isVisible = true
this.activeFilter = filter
this.$nextTick(() => this.$refs.searchInput.focus())
})
+2 -2
View File
@@ -494,8 +494,8 @@ const FunctionHelpers = {
this.$store.dispatch('fileInfoToggle', true)
}
Vue.prototype.$openSpotlight = function () {
events.$emit('spotlight:show')
Vue.prototype.$openSpotlight = function (filter = undefined) {
events.$emit('spotlight:show', filter)
}
Vue.prototype.$enableMultiSelectMode = function () {
+4
View File
@@ -7,6 +7,10 @@
{{ $t('admin_page_user.create_user.submit') }}
</MobileActionButton>
</router-link>
<MobileActionButton @click.native="$openSpotlight('users')" icon="search">
{{ $t('Search') }}
</MobileActionButton>
</div>
<!--Datatable-->