mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-29 11:15:58 +00:00
added search button for users admin page
This commit is contained in:
@@ -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
@@ -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 () {
|
||||
|
||||
@@ -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-->
|
||||
|
||||
Reference in New Issue
Block a user