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

sign_in_button.vue « components « subscriptions « jira_connect « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: dc0a77e99c23ed94c17bb5c077bc4bc9bd4611b6 (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
<script>
import { GlButton } from '@gitlab/ui';
import { getGitlabSignInURL } from '~/jira_connect/subscriptions/utils';

export default {
  components: {
    GlButton,
  },
  props: {
    usersPath: {
      type: String,
      required: true,
    },
  },
  data() {
    return {
      signInURL: '',
    };
  },
  created() {
    this.setSignInURL();
  },
  methods: {
    async setSignInURL() {
      this.signInURL = await getGitlabSignInURL(this.usersPath);
    },
  },
};
</script>
<template>
  <gl-button category="primary" variant="info" :href="signInURL" target="_blank">
    <slot>
      {{ s__('Integrations|Sign in to add namespaces') }}
    </slot>
  </gl-button>
</template>