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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-03-17 00:11:24 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-03-17 00:11:24 +0300
commit9a107fa4c14448945a3189fef35b11e0cafb0285 (patch)
tree5715663416bcdb17b509e172f1b6be103aac464d /app/assets/javascripts/ci/runner/components/registration
parentcc9ff71e31ecc954f819741ba1285b1b9adbf3b9 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/ci/runner/components/registration')
-rw-r--r--app/assets/javascripts/ci/runner/components/registration/registration_instructions.vue28
1 files changed, 17 insertions, 11 deletions
diff --git a/app/assets/javascripts/ci/runner/components/registration/registration_instructions.vue b/app/assets/javascripts/ci/runner/components/registration/registration_instructions.vue
index ee9ca5dc08c..11661888c85 100644
--- a/app/assets/javascripts/ci/runner/components/registration/registration_instructions.vue
+++ b/app/assets/javascripts/ci/runner/components/registration/registration_instructions.vue
@@ -27,6 +27,11 @@ export default {
required: false,
default: null,
},
+ token: {
+ type: String,
+ required: false,
+ default: null,
+ },
platform: {
type: String,
required: true,
@@ -53,12 +58,19 @@ export default {
}
return s__('Runners|Register runner');
},
- token() {
- return this.runner?.ephemeralAuthenticationToken;
- },
status() {
return this.runner?.status;
},
+ tokenMessage() {
+ if (this.token) {
+ return s__(
+ 'Runners|The %{boldStart}runner token%{boldEnd} %{token} displays %{boldStart}only for a short time%{boldEnd}, and is stored in the %{codeStart}config.toml%{codeEnd} after you register the runner. It will not be visible once the runner is registered.',
+ );
+ }
+ return s__(
+ 'Runners|The %{boldStart}runner token%{boldEnd} is no longer visible, it is stored in the %{codeStart}config.toml%{codeEnd} if you have registered the runner.',
+ );
+ },
commandPrompt() {
return commandPrompt({ platform: this.platform });
},
@@ -116,15 +128,9 @@ export default {
<cli-command :prompt="commandPrompt" :command="registerCommand" />
<p>
<gl-icon name="information-o" class="gl-text-blue-600!" />
- <gl-sprintf
- :message="
- s__(
- 'Runners|The %{boldStart}runner token%{boldEnd} %{token} displays %{boldStart}only for a short time%{boldEnd}, and is stored in the %{codeStart}config.toml%{codeEnd} after you create the runner. It will not be visible once the runner is registered.',
- )
- "
- >
+ <gl-sprintf :message="tokenMessage">
<template #token>
- <code>{{ token }}</code>
+ <code data-testid="runner-token">{{ token }}</code>
<clipboard-button
:text="token"
:title="__('Copy')"