mirror of
https://github.com/ansible/awx.git
synced 2026-01-14 03:10:42 -03:30
only show close icon in templates panel header when applicable
This commit is contained in:
parent
f122fb4e1d
commit
aa6fc6d8bf
@ -11,9 +11,9 @@ function IndexTemplatesController ($scope, strings, dataset) {
|
||||
}
|
||||
|
||||
IndexTemplatesController.$inject = [
|
||||
'$scope',
|
||||
'$scope',
|
||||
'TemplatesStrings',
|
||||
'Dataset',
|
||||
'Dataset'
|
||||
];
|
||||
|
||||
export default IndexTemplatesController;
|
||||
|
||||
@ -1,10 +1,20 @@
|
||||
<div ui-view="form"></div>
|
||||
<at-panel>
|
||||
<at-panel-heading>
|
||||
{{:: vm.strings.get('list.PANEL_TITLE') }}
|
||||
<div class="at-Panel-headingTitleBadge" ng-show="vm.count">
|
||||
{{ vm.count }}
|
||||
</div>
|
||||
</at-panel-heading>
|
||||
<at-panel ng-cloak id="htmlTemplate">
|
||||
<div ng-if="$state.is('templates')">
|
||||
<at-panel-heading hide-dismiss="true">
|
||||
{{:: vm.strings.get('list.PANEL_TITLE') }}
|
||||
<div class="at-Panel-headingTitleBadge" ng-show="vm.count">
|
||||
{{ vm.count }}
|
||||
</div>
|
||||
</at-panel-heading>
|
||||
</div>
|
||||
<div ng-if="!$state.is('templates')">
|
||||
<at-panel-heading>
|
||||
{{:: vm.strings.get('list.PANEL_TITLE') }}
|
||||
<div class="at-Panel-headingTitleBadge" ng-show="vm.count">
|
||||
{{ vm.count }}
|
||||
</div>
|
||||
</at-panel-heading>
|
||||
</div>
|
||||
<div ui-view="templatesList"></div>
|
||||
</at-panel>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user