Files
Peter EvansandJeremie Pardou 5e271e22c9 feat: add permanent workspace invite links (#6521)
* feat: add permanent workspace invite links behind the rbac_improvements feature flag

* feat: ask logged-in users to confirm before joining a workspace through an invite link

* feat: make the invite link code length configurable with a default of 12 and a minimum of 7

* feat: let admins name invite links so they remember what each one is for

* feat: show only the invite path in the link column to make room for the name

* fix: harden invite links and let people sign up through them with single sign-on

* fix: ask people who sign up through an invite link with single sign-on to confirm joining

* feat: let invite links raise a member's role after they confirm, without ever lowering it

* fix: move shared clipboard helper into core

* fix: validate workspace invitation link roles

* refactor: share confirmation modal across core features

* refactor: use literal frontend translation keys

* fix: label invitation route Invite links

* fix: copy invitation links when clicking their paths

* fix: align invitation migration with latest develop

---------

Co-authored-by: Jeremie Pardou <571533+jrmi@users.noreply.github.com>
2026-11-04 08:37:21 +01:00

38 lines
938 B
Vue

<template>
<Modal ref="modal" small @hidden="$emit('hidden')">
<h2 class="box__title">{{ title }}</h2>
<p>{{ message }}</p>
<div class="actions margin-bottom-0">
<ul class="action__links">
<li>
<a @click="hide()">{{ $t('action.cancel') }}</a>
</li>
</ul>
<Button
:type="danger ? 'danger' : 'primary'"
:loading="loading"
@click="$emit('confirm')"
>
{{ confirmLabel }}
</Button>
</div>
</Modal>
</template>
<script>
import modal from '@baserow/modules/core/mixins/modal'
export default {
name: 'ConfirmModal',
mixins: [modal],
props: {
title: { type: String, required: true },
message: { type: String, required: true },
confirmLabel: { type: String, required: true },
danger: { type: Boolean, default: false },
loading: { type: Boolean, default: false },
},
emits: ['hidden', 'confirm'],
}
</script>