mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-16 12:12:15 +01:00
filter placeholder role so it cannot be selected for invites
This commit is contained in:
@@ -10,6 +10,7 @@ import InputError from '@/Components/InputError.vue';
|
||||
import type { Role } from '@/types/jetstream';
|
||||
import { useForm } from '@inertiajs/vue3';
|
||||
import { getCurrentOrganizationId } from '@/utils/useUser';
|
||||
import { filterRoles } from '@/utils/roles';
|
||||
|
||||
const show = defineModel('show', { default: false });
|
||||
const saving = ref(false);
|
||||
@@ -78,7 +79,7 @@ useFocus(clientNameInput, { initialValue: true });
|
||||
<div
|
||||
class="relative z-0 mt-1 border border-card-border rounded-lg cursor-pointer">
|
||||
<button
|
||||
v-for="(role, i) in availableRoles"
|
||||
v-for="(role, i) in filterRoles(availableRoles)"
|
||||
:key="role.key"
|
||||
type="button"
|
||||
class="relative px-4 py-3 inline-flex w-full rounded-lg focus:z-10 focus:outline-none focus:border-indigo-500 focus:ring-2 focus:ring-indigo-500"
|
||||
|
||||
@@ -13,8 +13,8 @@ defineProps<{
|
||||
:href="href"
|
||||
:class="
|
||||
twMerge(
|
||||
'contents [&>*]:hover:bg-white/5 [&>*]:transition [&>*]:cursor-pointer [&>*]:border-row-separator [&>*]:border-b',
|
||||
href ? '[&>*]:cursor-pointer' : ''
|
||||
'contents [&>*]:transition [&>*]:border-row-separator [&>*]:border-b',
|
||||
href ? '[&>*]:cursor-pointer [&>*]:hover:bg-white/5' : ''
|
||||
)
|
||||
">
|
||||
<slot></slot>
|
||||
|
||||
Reference in New Issue
Block a user