mobilizon/js/src/components/Group/ShareGroupModal.vue
Thomas Citharel ee20e03cc2
Migrate to Vue 3 and Vite
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-08-11 16:46:31 +02:00

43 lines
907 B
Vue

<template>
<share-modal
:title="t('Share this group')"
:text="displayName(group)"
:url="group.url"
:input-label="t('Group URL')"
>
<o-notification
variant="warning"
v-if="group.visibility !== GroupVisibility.PUBLIC"
:closable="false"
>
{{
$t(
"This group is accessible only through it's link. Be careful where you post this link."
)
}}
</o-notification>
</share-modal>
</template>
<script lang="ts" setup>
import { GroupVisibility } from "@/types/enums";
import { displayName, IGroup } from "@/types/actor";
import { useI18n } from "vue-i18n";
import ShareModal from "@/components/Share/ShareModal.vue";
const { t } = useI18n({ useScope: "global" });
defineProps<{
group: IGroup;
}>();
</script>
<style lang="scss" scoped>
.diaspora,
.mastodon,
.telegram {
:deep(span svg) {
width: 2.25rem;
}
}
</style>