Files
speckle-server/packages/frontend-2/components/settings/workspaces/security/ConfirmJoinPolicyDialog.vue
T
2025-05-22 16:28:38 +02:00

50 lines
986 B
Vue

<template>
<LayoutDialog
v-model:open="isOpen"
title="Confirm new user policy"
max-width="sm"
:buttons="dialogButtons"
>
<p class="text-body-xs text-foreground">
Are you sure you want to allow users with a verified domain to join this workspace
without admin approval?
</p>
</LayoutDialog>
</template>
<script setup lang="ts">
import type { LayoutDialogButton } from '@speckle/ui-components'
const emit = defineEmits<{
(e: 'confirm'): void
(e: 'cancel'): void
}>()
const isOpen = defineModel<boolean>('open', { required: true })
const handleConfirm = () => {
emit('confirm')
isOpen.value = false
}
const handleCancel = () => {
emit('cancel')
isOpen.value = false
}
const dialogButtons = computed((): LayoutDialogButton[] => [
{
text: 'Cancel',
props: { color: 'outline' },
onClick: handleCancel
},
{
text: 'Confirm',
props: {
color: 'primary'
},
onClick: handleConfirm
}
])
</script>