mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2026-09-09 18:02:54 +00:00
check if data exists
This commit is contained in:
@@ -58,7 +58,7 @@ import { Router } from '@angular/router';
|
|||||||
export class ToggleFavoriteComponent implements OnInit {
|
export class ToggleFavoriteComponent implements OnInit {
|
||||||
@Input() data: any;
|
@Input() data: any;
|
||||||
selection$: Observable<SelectionState>;
|
selection$: Observable<SelectionState>;
|
||||||
private reloadOnRoutes: string[];
|
private reloadOnRoutes: string[] = [];
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
private store: Store<AppStore>,
|
private store: Store<AppStore>,
|
||||||
@@ -69,9 +69,11 @@ export class ToggleFavoriteComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
this.reloadOnRoutes = this.extensionService.runExpression(
|
if (this.data) {
|
||||||
`$( ${this.data} )`
|
this.reloadOnRoutes = this.extensionService.runExpression(
|
||||||
);
|
`$( ${this.data} )`
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
onToggleEvent() {
|
onToggleEvent() {
|
||||||
|
|||||||
Reference in New Issue
Block a user