mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-07-07 10:14:13 -04:00
Fixing nested refresh of item grid
This commit is contained in:
parent
fe5bc8090a
commit
83473c7ed6
@ -58,7 +58,8 @@ const routes: Routes = [
|
|||||||
shows: PageResolver.forResource<Show>("collections/:slug/shows", ItemsGridComponent.routeMapper)
|
shows: PageResolver.forResource<Show>("collections/:slug/shows", ItemsGridComponent.routeMapper)
|
||||||
},
|
},
|
||||||
canLoad: [AuthGuard.forPermissions("read")],
|
canLoad: [AuthGuard.forPermissions("read")],
|
||||||
canActivate: [AuthGuard.forPermissions("read")]
|
canActivate: [AuthGuard.forPermissions("read")],
|
||||||
|
runGuardsAndResolvers: "always"
|
||||||
},
|
},
|
||||||
{path: "people/:slug", component: CollectionComponent,
|
{path: "people/:slug", component: CollectionComponent,
|
||||||
resolve:
|
resolve:
|
||||||
@ -67,7 +68,8 @@ const routes: Routes = [
|
|||||||
shows: PageResolver.forResource<Show>("people/:slug/roles", ItemsGridComponent.routeMapper)
|
shows: PageResolver.forResource<Show>("people/:slug/roles", ItemsGridComponent.routeMapper)
|
||||||
},
|
},
|
||||||
canLoad: [AuthGuard.forPermissions("read")],
|
canLoad: [AuthGuard.forPermissions("read")],
|
||||||
canActivate: [AuthGuard.forPermissions("read")]
|
canActivate: [AuthGuard.forPermissions("read")],
|
||||||
|
runGuardsAndResolvers: "always"
|
||||||
},
|
},
|
||||||
|
|
||||||
{path: "show/:slug", component: ShowDetailsComponent,
|
{path: "show/:slug", component: ShowDetailsComponent,
|
||||||
|
@ -80,7 +80,6 @@ export class ItemsGridComponent
|
|||||||
|| x.slug == this.route.snapshot.params.slug);
|
|| x.slug == this.route.snapshot.params.slug);
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO /collection & /people does not get refreshed data from the provider when using a new filter/sort.
|
|
||||||
// TODO add /people to the switch list.
|
// TODO add /people to the switch list.
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user