[ADF-3067] App-list Empty State. (#3432)

This commit is contained in:
camorra-skk
2018-06-06 14:24:43 +05:30
committed by Maurizio Vitale
parent 302091d338
commit 508308113c
7 changed files with 29 additions and 27 deletions

View File

@@ -15,7 +15,7 @@
* limitations under the License.
*/
import { AppsProcessService, TranslationService, EmptyListComponent } from '@alfresco/adf-core';
import { AppsProcessService, TranslationService, EmptyCustomContentDirective } from '@alfresco/adf-core';
import { AfterContentInit, Component, EventEmitter, Input, OnInit, Output, ContentChild } from '@angular/core';
import { Observable } from 'rxjs/Observable';
import { Observer } from 'rxjs/Observer';
@@ -37,8 +37,8 @@ export class AppsListComponent implements OnInit, AfterContentInit {
public static DEFAULT_TASKS_APP_ICON: string = 'glyphicon-asterisk';
public static DEFAULT_TASKS_APP_MATERIAL_ICON: string = 'favorite_border';
@ContentChild(EmptyListComponent)
emptyTemplate: EmptyListComponent;
@ContentChild(EmptyCustomContentDirective)
emptyCustomContent: EmptyCustomContentDirective;
/** (**required**) Defines the layout of the apps. There are two possible
* values, "GRID" and "LIST".
@@ -69,7 +69,7 @@ export class AppsListComponent implements OnInit, AfterContentInit {
loading: boolean = false;
hasCustomEmptyListTemplate: boolean = false;
hasEmptyCustomContentTemplate: boolean = false;
constructor(
private appsProcessService: AppsProcessService,
@@ -90,8 +90,8 @@ export class AppsListComponent implements OnInit, AfterContentInit {
}
ngAfterContentInit() {
if (this.emptyTemplate) {
this.hasCustomEmptyListTemplate = true;
if (this.emptyCustomContent) {
this.hasEmptyCustomContentTemplate = true;
}
}