Browse Source
Merge pull request #2 from Avd6977/Avd6977-HideCategories
Hide categories that return no results
pull/319/head
Avd6977
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
3 deletions
-
src/Squidex/app/shared/components/schema-category.component.html
|
|
@ -1,4 +1,4 @@ |
|
|
<div *ngIf="!isReadonly || (schemasForCategory && schemasForCategory.length > 0)" dnd-droppable class="droppable category" [allowDrop]="allowDrop" (onDropSuccess)="changeCategory($event.dragData)"> |
|
|
<div *ngIf="!isReadonly || (schemasForCategory && schemasFiltered.length > 0)" dnd-droppable class="droppable category" [allowDrop]="allowDrop" (onDropSuccess)="changeCategory($event.dragData)"> |
|
|
<div class="drop-indicator"></div> |
|
|
<div class="drop-indicator"></div> |
|
|
|
|
|
|
|
|
<div class="header clearfix"> |
|
|
<div class="header clearfix"> |
|
|
@ -6,7 +6,7 @@ |
|
|
<i [class.icon-caret-right]="!isOpen" [class.icon-caret-down]="isOpen"></i> |
|
|
<i [class.icon-caret-right]="!isOpen" [class.icon-caret-down]="isOpen"></i> |
|
|
</a> |
|
|
</a> |
|
|
|
|
|
|
|
|
<h3>{{displayName}} ({{schemasForCategory.length}})</h3> |
|
|
<h3>{{displayName}} ({{schemasFiltered.length}})</h3> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a class="btn btn-sm btn-link float-right" *ngIf="schemasForCategory.length === 0 && !isReadonly" (click)="removing.emit()"> |
|
|
<a class="btn btn-sm btn-link float-right" *ngIf="schemasForCategory.length === 0 && !isReadonly" (click)="removing.emit()"> |
|
|
|