diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-06-20 14:10:13 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-06-20 14:10:13 +0300 |
commit | 0ea3fcec397b69815975647f5e2aa5fe944a8486 (patch) | |
tree | 7979381b89d26011bcf9bdc989a40fcc2f1ed4ff /app/assets/javascripts/clusters_list/components | |
parent | 72123183a20411a36d607d70b12d57c484394c8e (diff) |
Add latest changes from gitlab-org/gitlab@15-1-stable-eev15.1.0-rc42
Diffstat (limited to 'app/assets/javascripts/clusters_list/components')
3 files changed, 21 insertions, 7 deletions
diff --git a/app/assets/javascripts/clusters_list/components/agent_token.vue b/app/assets/javascripts/clusters_list/components/agent_token.vue index 1597fcb9914..4dd6d84566c 100644 --- a/app/assets/javascripts/clusters_list/components/agent_token.vue +++ b/app/assets/javascripts/clusters_list/components/agent_token.vue @@ -21,6 +21,10 @@ export default { }, inject: ['kasAddress', 'kasVersion'], props: { + agentName: { + required: true, + type: String, + }, agentToken: { required: true, type: String, @@ -32,7 +36,12 @@ export default { }, computed: { agentRegistrationCommand() { - return generateAgentRegistrationCommand(this.agentToken, this.kasAddress, this.kasVersion); + return generateAgentRegistrationCommand({ + name: this.agentName, + token: this.agentToken, + version: this.kasVersion, + address: this.kasAddress, + }); }, }, }; diff --git a/app/assets/javascripts/clusters_list/components/clusters.vue b/app/assets/javascripts/clusters_list/components/clusters.vue index fb3c8ff66b0..1ea5eff35d4 100644 --- a/app/assets/javascripts/clusters_list/components/clusters.vue +++ b/app/assets/javascripts/clusters_list/components/clusters.vue @@ -4,7 +4,7 @@ import { GlLink, GlLoadingIcon, GlPagination, - GlDeprecatedSkeletonLoading as GlSkeletonLoading, + GlSkeletonLoader, GlSprintf, GlTableLite, GlTooltipDirective, @@ -25,7 +25,7 @@ export default { GlLink, GlLoadingIcon, GlPagination, - GlSkeletonLoading, + GlSkeletonLoader, GlSprintf, GlTableLite, NodeErrorHelpText, @@ -267,7 +267,7 @@ export default { <template #cell(node_size)="{ item }"> <span v-if="item.nodes">{{ item.nodes.length }}</span> - <gl-skeleton-loading v-else-if="loadingNodes" :lines="1" :class="contentAlignClasses" /> + <gl-skeleton-loader v-else-if="loadingNodes" :lines="1" :class="contentAlignClasses" /> <node-error-help-text v-else-if="item.kubernetes_errors" @@ -288,7 +288,7 @@ export default { </gl-sprintf> </span> - <gl-skeleton-loading v-else-if="loadingNodes" :lines="1" :class="contentAlignClasses" /> + <gl-skeleton-loader v-else-if="loadingNodes" :lines="1" :class="contentAlignClasses" /> <node-error-help-text v-else-if="item.kubernetes_errors" @@ -309,7 +309,7 @@ export default { </gl-sprintf> </span> - <gl-skeleton-loading v-else-if="loadingNodes" :lines="1" :class="contentAlignClasses" /> + <gl-skeleton-loader v-else-if="loadingNodes" :lines="1" :class="contentAlignClasses" /> <node-error-help-text v-else-if="item.kubernetes_errors" diff --git a/app/assets/javascripts/clusters_list/components/install_agent_modal.vue b/app/assets/javascripts/clusters_list/components/install_agent_modal.vue index 3b39c3aac45..444b9ac2a14 100644 --- a/app/assets/javascripts/clusters_list/components/install_agent_modal.vue +++ b/app/assets/javascripts/clusters_list/components/install_agent_modal.vue @@ -268,7 +268,12 @@ export default { </p> </template> - <agent-token v-else :agent-token="agentToken" :modal-id="$options.modalId" /> + <agent-token + v-else + :agent-name="agentName" + :agent-token="agentToken" + :modal-id="$options.modalId" + /> </template> <template v-else> |