MOBILE-3320 core: Fix inline on empty box component

main
Pau Ferrer Ocaña 2021-05-12 12:42:35 +02:00
parent ef6342dfe5
commit 1f1e232f10
4 changed files with 6 additions and 5 deletions

View File

@ -74,7 +74,7 @@
</ion-searchbar>
<core-empty-box *ngIf="filteredCourses.length == 0" image="assets/img/icons/courses.svg"
[message]="'addon.block_myoverview.nocourses' | translate" class="core-empty-inline">
[message]="'addon.block_myoverview.nocourses' | translate" inline="true">
</core-empty-box>
<!-- List of courses. -->

View File

@ -54,4 +54,5 @@
</div>
<core-empty-box *ngIf="empty" image="assets/img/icons/activities.svg" [message]="'addon.block_timeline.noevents' | translate"
[inline]="!showCourse"></core-empty-box>
inline="true">
</core-empty-box>

View File

@ -83,7 +83,7 @@
contextLevel="module" [contextInstanceId]="module.id" [courseId]="courseId">
</core-format-text>
<core-empty-box *ngIf="!pageContent" icon="fas-file-alt" [message]="'addon.mod_wiki.nocontent' | translate"
[inline]="true">
inline="true">
</core-empty-box>
</article>

View File

@ -37,7 +37,7 @@ export class CoreEmptyBoxComponent {
* If this has to be shown inline instead of occupying whole page.
* If image or icon is not supplied, it's true by default.
*/
@Input() inline?: boolean;
@Input() flipIconRtl?: boolean; // Whether to flip the icon in RTL. Defaults to false.
@Input() inline = false;
@Input() flipIconRtl = false; // Whether to flip the icon in RTL. Defaults to false.
}