File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -75,6 +75,9 @@ export class CollectionDetail extends BtrixElement {
75
75
@state ( )
76
76
private isRwpLoaded = false ;
77
77
78
+ @state ( )
79
+ private rwpDoFullReload = false ;
80
+
78
81
@consume ( { context : viewStateContext } )
79
82
viewState ?: ViewStateContext ;
80
83
@@ -422,6 +425,8 @@ export class CollectionDetail extends BtrixElement {
422
425
} catch ( e ) {
423
426
console . warn ( "Full reload not available in RWP" ) ;
424
427
}
428
+ } else {
429
+ this . rwpDoFullReload = true ;
425
430
}
426
431
}
427
432
@@ -903,6 +908,10 @@ export class CollectionDetail extends BtrixElement {
903
908
if ( ! this . isRwpLoaded ) {
904
909
this . isRwpLoaded = true ;
905
910
}
911
+ if ( this . rwpDoFullReload && this . replayEmbed ) {
912
+ this . replayEmbed . fullReload ( ) ;
913
+ this . rwpDoFullReload = false ;
914
+ }
906
915
} }
907
916
></replay-web-page>
908
917
</section>` ;
@@ -1044,6 +1053,7 @@ export class CollectionDetail extends BtrixElement {
1044
1053
icon : "check2-circle" ,
1045
1054
id : "collection-item-remove-status" ,
1046
1055
} ) ;
1056
+ this . refreshReplay ( ) ;
1047
1057
void this . fetchCollection ( ) ;
1048
1058
void this . fetchArchivedItems ( {
1049
1059
// Update page if last item
You can’t perform that action at this time.
0 commit comments