File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed
src/app/features/home/details Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change 55
55
"
56
56
>
57
57
< div class ="slide ">
58
- < iframe [src] ="iframeUrlWithToken $ | ngrxPush "> </ iframe >
58
+ < iframe [src] ="iframeUrlWithJWTToken $ | ngrxPush "> </ iframe >
59
59
</ div >
60
60
</ ng-template >
61
61
</ swiper >
Original file line number Diff line number Diff line change @@ -213,6 +213,22 @@ export class DetailsPage {
213
213
} )
214
214
) ;
215
215
216
+ readonly iframeUrlWithJWTToken$ = combineLatest ( [
217
+ this . activeDetailedCapture$ ,
218
+ defer ( ( ) => this . diaBackendAuthService . queryJWTToken$ ( ) ) ,
219
+ ] ) . pipe (
220
+ distinctUntilChanged ( ) ,
221
+ map ( ( [ detailedCapture , token ] ) => {
222
+ const params =
223
+ `nid=${ detailedCapture . id } ` +
224
+ `&token=${ token . access } ` +
225
+ `&refresh_token=${ token . refresh } ` +
226
+ `&from=mycapture` ;
227
+ const url = `${ BUBBLE_IFRAME_URL } /asset_page?${ params } ` ;
228
+ return this . sanitizer . bypassSecurityTrustResourceUrl ( url ) ;
229
+ } )
230
+ ) ;
231
+
216
232
readonly isFromSeriesPage$ = this . type$ . pipe ( map ( type => type === 'series' ) ) ;
217
233
218
234
constructor (
You can’t perform that action at this time.
0 commit comments