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

revoke_oauth.vue « components « google_cloud « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c07702ff42b46d43c5061e2f8afa16d97cee3904 (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
38
<script>
import { GlButton, GlForm } from '@gitlab/ui';
import csrf from '~/lib/utils/csrf';
import { s__ } from '~/locale';

export const GOOGLE_CLOUD_REVOKE_TITLE = s__('GoogleCloud|Revoke authorizations');
export const GOOGLE_CLOUD_REVOKE_DESCRIPTION = s__(
  'GoogleCloud|Revoke authorizations granted to GitLab. This does not invalidate service accounts.',
);

export default {
  components: { GlButton, GlForm },
  csrf,
  props: {
    url: {
      type: String,
      required: true,
    },
  },
  i18n: {
    title: GOOGLE_CLOUD_REVOKE_TITLE,
    description: GOOGLE_CLOUD_REVOKE_DESCRIPTION,
  },
};
</script>

<template>
  <div class="gl-mx-4">
    <h2 class="gl-font-size-h2">{{ $options.i18n.title }}</h2>
    <p>{{ $options.i18n.description }}</p>
    <gl-form :action="url" method="post">
      <input :value="$options.csrf.token" type="hidden" name="authenticity_token" />
      <gl-button category="secondary" variant="danger" type="submit">
        {{ $options.i18n.title }}
      </gl-button>
    </gl-form>
  </div>
</template>