Welcome to mirror list, hosted at ThFree Co, Russian Federation.

invite_group_notification.vue « components « invite_members « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 767675cc64c1b7f77c7145963d8282adce56c35f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<script>
import { GlAlert, GlSprintf, GlLink } from '@gitlab/ui';
import { GROUP_MODAL_ALERT_BODY } from '../constants';

const SHARE_GROUP_LINK =
  'https://docs.gitlab.com/ee/user/group/manage.html#share-a-group-with-another-group';

export default {
  SHARE_GROUP_LINK,
  name: 'InviteGroupNotification',
  components: { GlAlert, GlSprintf, GlLink },
  inject: ['freeUsersLimit'],
  props: {
    name: {
      type: String,
      required: true,
    },
  },
  i18n: {
    body: GROUP_MODAL_ALERT_BODY,
  },
};
</script>

<template>
  <gl-alert variant="warning" :dismissible="false">
    <gl-sprintf :message="$options.i18n.body">
      <template #link="{ content }">
        <gl-link :href="$options.SHARE_GROUP_LINK" target="_blank" class="gl-label-link">{{
          content
        }}</gl-link>
      </template>

      <template #count>{{ freeUsersLimit }}</template>
    </gl-sprintf>
  </gl-alert>
</template>