Commit a97a4bdc authored by Mike Greiling's avatar Mike Greiling

display manage application button only when it is installed

parent 39d5adde
...@@ -93,6 +93,9 @@ ...@@ -93,6 +93,9 @@
return label; return label;
}, },
showManageButton() {
return this.manageLink && this.status === APPLICATION_INSTALLED;
},
manageButtonLabel() { manageButtonLabel() {
return s__('ClusterIntegration|Manage'); return s__('ClusterIntegration|Manage');
}, },
...@@ -149,11 +152,11 @@ ...@@ -149,11 +152,11 @@
</div> </div>
<div <div
class="table-section table-button-footer section-align-top" class="table-section table-button-footer section-align-top"
:class="{ 'section-20': manageLink, 'section-15': !manageLink }" :class="{ 'section-20': showManageButton, 'section-15': !showManageButton }"
role="gridcell" role="gridcell"
> >
<div <div
v-if="manageLink" v-if="showManageButton"
class="btn-group table-action-buttons" class="btn-group table-action-buttons"
> >
<a <a
......
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