Skip to content
Snippets Groups Projects
Unverified Commit d2688b28 authored by Mike Greiling's avatar Mike Greiling
Browse files

add manage button to application rows in cluster integration

parent 529edc9e
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -32,6 +32,10 @@
type: String,
required: false,
},
manageLink: {
type: String,
required: false,
},
description: {
type: String,
required: true,
Loading
Loading
@@ -141,9 +145,21 @@
<div v-html="description"></div>
</div>
<div
class="table-section table-button-footer section-15 section-align-top"
class="table-section table-button-footer section-align-top"
:class="{ 'section-20': manageLink, 'section-15': !manageLink }"
role="gridcell"
>
<div
v-if="manageLink"
class="btn-group table-action-buttons"
>
<a
class="btn"
:href="manageLink"
>
Manage
</a>
</div>
<div class="btn-group table-action-buttons">
<loading-button
class="js-cluster-application-install-button"
Loading
Loading
Loading
Loading
@@ -18,6 +18,11 @@
required: false,
default: '',
},
managePrometheusPath: {
type: String,
required: false,
default: '',
}
},
computed: {
generalApplicationDescription() {
Loading
Loading
@@ -76,11 +81,12 @@
},
prometheusDescription() {
return sprintf(
_.escape(s__(`ClusterIntegration|Prometheus is an open-source monitoring system
with %{gitlabIntegrationLink} to monitor deployed applications.`)),
{
_.escape(s__(
`ClusterIntegration|Prometheus is an open-source monitoring system
with %{gitlabIntegrationLink} to monitor deployed applications.`,
)), {
gitlabIntegrationLink: `<a href="https://docs.gitlab.com/ce/user/project/integrations/prometheus.html"
target="_blank" rel="noopener noreferrer">
target="_blank" rel="noopener noreferrer">
${_.escape(s__('ClusterIntegration|GitLab Integration'))}</a>`,
},
false,
Loading
Loading
@@ -129,6 +135,7 @@ target="_blank" rel="noopener noreferrer">
id="prometheus"
:title="applications.prometheus.title"
title-link="https://prometheus.io/docs/introduction/overview/"
:manage-link="managePrometheusPath"
:description="prometheusDescription"
:status="applications.prometheus.status"
:status-reason="applications.prometheus.statusReason"
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment