diff options
Diffstat (limited to 'app/assets/javascripts/clusters_list/components/clusters_view_all.vue')
-rw-r--r-- | app/assets/javascripts/clusters_list/components/clusters_view_all.vue | 67 |
1 files changed, 3 insertions, 64 deletions
diff --git a/app/assets/javascripts/clusters_list/components/clusters_view_all.vue b/app/assets/javascripts/clusters_list/components/clusters_view_all.vue index b730c0adfa2..73ca804e111 100644 --- a/app/assets/javascripts/clusters_list/components/clusters_view_all.vue +++ b/app/assets/javascripts/clusters_list/components/clusters_view_all.vue @@ -1,22 +1,7 @@ <script> -import { - GlCard, - GlSprintf, - GlPopover, - GlLink, - GlButton, - GlBadge, - GlLoadingIcon, - GlModalDirective, - GlTooltipDirective, -} from '@gitlab/ui'; +import { GlCard, GlSprintf, GlPopover, GlLink, GlBadge, GlLoadingIcon } from '@gitlab/ui'; import { mapState } from 'vuex'; -import { - AGENT_CARD_INFO, - CERTIFICATE_BASED_CARD_INFO, - MAX_CLUSTERS_LIST, - INSTALL_AGENT_MODAL_ID, -} from '../constants'; +import { AGENT_CARD_INFO, CERTIFICATE_BASED_CARD_INFO, MAX_CLUSTERS_LIST } from '../constants'; import Clusters from './clusters.vue'; import Agents from './agents.vue'; @@ -26,23 +11,16 @@ export default { GlSprintf, GlPopover, GlLink, - GlButton, GlBadge, GlLoadingIcon, Clusters, Agents, }, - directives: { - GlModalDirective, - GlTooltip: GlTooltipDirective, - }, MAX_CLUSTERS_LIST, - INSTALL_AGENT_MODAL_ID, i18n: { agent: AGENT_CARD_INFO, certificate: CERTIFICATE_BASED_CARD_INFO, }, - inject: ['addClusterPath', 'canAddCluster'], props: { defaultBranchName: { default: '.noBranch', @@ -93,14 +71,6 @@ export default { return cardTitle; }, - installAgentTooltip() { - return this.canAddCluster ? '' : this.$options.i18n.agent.installAgentDisabledHint; - }, - connectExistingClusterTooltip() { - return this.canAddCluster - ? '' - : this.$options.i18n.certificate.connectExistingClusterDisabledHint; - }, }, methods: { cardFooterNumber(number) { @@ -177,21 +147,6 @@ export default { ><template #number>{{ cardFooterNumber(totalAgents) }}</template></gl-sprintf ></gl-link > - <div - v-gl-tooltip="installAgentTooltip" - class="gl-display-inline-block" - tabindex="-1" - data-testid="install-agent-button-tooltip" - > - <gl-button - v-gl-modal-directive="$options.INSTALL_AGENT_MODAL_ID" - class="gl-ml-4" - category="secondary" - variant="confirm" - :disabled="!canAddCluster" - >{{ $options.i18n.agent.actionText }}</gl-button - > - </div> </template> </gl-card> @@ -214,7 +169,7 @@ export default { <gl-badge variant="warning">{{ $options.i18n.certificate.badgeText }}</gl-badge> </template> - <clusters :limit="$options.MAX_CLUSTERS_LIST" :is-child-component="true" /> + <clusters :limit="$options.MAX_CLUSTERS_LIST" /> <template #footer> <gl-link @@ -226,22 +181,6 @@ export default { ><template #number>{{ cardFooterNumber(totalClusters) }}</template></gl-sprintf ></gl-link > - <div - v-gl-tooltip="connectExistingClusterTooltip" - class="gl-display-inline-block" - tabindex="-1" - data-testid="connect-existing-cluster-button-tooltip" - > - <gl-button - category="secondary" - data-qa-selector="connect_existing_cluster_button" - variant="confirm" - class="gl-ml-4" - :href="addClusterPath" - :disabled="!canAddCluster" - >{{ $options.i18n.certificate.actionText }}</gl-button - > - </div> </template> </gl-card> </div> |