File tree Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,7 @@ export default class PrePrintsDetailController extends Controller {
4646 @service media ! : Media ;
4747
4848 @tracked fullScreenMFR = false ;
49+ @tracked plauditIsReady = false ;
4950
5051 metricsStartDate = config . OSF . metricsStartDate ;
5152
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ import Ready from 'ember-osf-web/services/ready';
1717import Theme from 'ember-osf-web/services/theme' ;
1818import captureException from 'ember-osf-web/utils/capture-exception' ;
1919import pathJoin from 'ember-osf-web/utils/path-join' ;
20+ import PrePrintsDetailController from './controller' ;
2021
2122/**
2223 * @module ember-preprints
@@ -143,6 +144,7 @@ export default class PreprintsDetail extends Route {
143144 }
144145 this . set ( 'headTags' , allTags ) ;
145146 this . metaTags . updateHeadTags ( ) ;
147+ ( this . controller as PrePrintsDetailController ) . plauditIsReady = true ;
146148 }
147149 blocker . done ( ) ;
148150 }
Original file line number Diff line number Diff line change 125125 </div >
126126 <div local-class =' plaudit-container' >
127127 <div local-class =' plaudit' >
128- <Preprints::-Components::PlauditWidget ></Preprints::-Components::PlauditWidget >
128+ {{ #if this.plauditIsReady }}
129+ <Preprints::-Components::PlauditWidget />
130+ {{ /if }}
129131 </div >
130132 <SharingIcons
131133 local-class =' sharing-icons'
You can’t perform that action at this time.
0 commit comments