only show close icon in templates panel header when applicable

This commit is contained in:
John Mitchell
2018-04-27 15:38:12 -04:00
parent f122fb4e1d
commit aa6fc6d8bf
2 changed files with 19 additions and 9 deletions

View File

@@ -11,9 +11,9 @@ function IndexTemplatesController ($scope, strings, dataset) {
} }
IndexTemplatesController.$inject = [ IndexTemplatesController.$inject = [
'$scope', '$scope',
'TemplatesStrings', 'TemplatesStrings',
'Dataset', 'Dataset'
]; ];
export default IndexTemplatesController; export default IndexTemplatesController;

View File

@@ -1,10 +1,20 @@
<div ui-view="form"></div> <div ui-view="form"></div>
<at-panel> <at-panel ng-cloak id="htmlTemplate">
<at-panel-heading> <div ng-if="$state.is('templates')">
{{:: vm.strings.get('list.PANEL_TITLE') }} <at-panel-heading hide-dismiss="true">
<div class="at-Panel-headingTitleBadge" ng-show="vm.count"> {{:: vm.strings.get('list.PANEL_TITLE') }}
{{ vm.count }} <div class="at-Panel-headingTitleBadge" ng-show="vm.count">
</div> {{ vm.count }}
</at-panel-heading> </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> <div ui-view="templatesList"></div>
</at-panel> </at-panel>