Commit d2688b28 authored by Mike Greiling's avatar Mike Greiling

add manage button to application rows in cluster integration

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