hide stacks tab if stack feature is disabled (#10551)

pull/10554/head
Prabhat Khera 1 year ago committed by GitHub
parent 247f358b94
commit 7d868d1dc9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -7,7 +7,7 @@
<div class="col-sm-12" data-cy="k8sApp-appList"> <div class="col-sm-12" data-cy="k8sApp-appList">
<rd-widget> <rd-widget>
<rd-widget-body classes="no-padding"> <rd-widget-body classes="no-padding">
<uib-tabset active="ctrl.state.activeTab" justified="true" type="pills"> <uib-tabset active="ctrl.state.activeTab" justified="true" type="pills" ng-if="!ctrl.deploymentOptions.hideStacksFunctionality">
<uib-tab index="0" classes="btn-sm" select="ctrl.selectTab(0)"> <uib-tab index="0" classes="btn-sm" select="ctrl.selectTab(0)">
<uib-tab-heading class="vertical-center"> <pr-icon icon="'box'"></pr-icon> Applications </uib-tab-heading> <uib-tab-heading class="vertical-center"> <pr-icon icon="'box'"></pr-icon> Applications </uib-tab-heading>
<kubernetes-applications-datatable <kubernetes-applications-datatable
@ -44,6 +44,25 @@
</kubernetes-applications-stacks-datatable> </kubernetes-applications-stacks-datatable>
</uib-tab> </uib-tab>
</uib-tabset> </uib-tabset>
<kubernetes-applications-datatable
ng-if="ctrl.deploymentOptions.hideStacksFunctionality"
dataset="ctrl.state.applications"
table-key="kubernetes.applications"
settings-key="kubernetes.applications"
order-by="Name"
remove-action="ctrl.removeAction"
refresh-callback="ctrl.getApplications"
on-publishing-mode-click="(ctrl.onPublishingModeClick)"
is-primary="true"
namespaces="ctrl.state.namespaces"
namespace="ctrl.state.namespaceName"
on-change-namespace-dropdown="(ctrl.onChangeNamespaceDropdown)"
is-apps-loading="ctrl.state.isAppsLoading"
is-system-resources="ctrl.state.isSystemResources"
set-system-resources="(ctrl.setSystemResources)"
hide-stacks-functionality="ctrl.deploymentOptions.hideStacksFunctionality"
>
</kubernetes-applications-datatable>
</rd-widget-body> </rd-widget-body>
</rd-widget> </rd-widget>
</div> </div>

Loading…
Cancel
Save