chore: always show user list controls

This commit is contained in:
Phan An 2024-09-05 12:34:57 +02:00
parent a64353aedc
commit 24ea957e9e

View file

@ -3,10 +3,9 @@
<template #header>
<ScreenHeader layout="collapsed">
Users
<ControlsToggle v-model="showingControls" />
<template #controls>
<BtnGroup v-if="showingControls || !isPhone" uppercase>
<BtnGroup uppercase>
<Btn success @click="showAddUserForm">
<Icon :icon="faPlus" />
Add
@ -72,8 +71,6 @@ const users = computed(() => allUsers
const prospects = computed(() => allUsers.value.filter(({ is_prospect }) => is_prospect))
const isPhone = isMobile.phone
const showingControls = ref(false)
const canInvite = window.MAILER_CONFIGURED
const showAddUserForm = () => eventBus.emit('MODAL_SHOW_ADD_USER_FORM')