File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import '@/styles/frontend-theme.css' ;
22import PkpScrollToComments from './PkpScrollToComments.vue' ;
33import PkpScrollToCommentsLogInto from './PkpScrollToCommentsLogInto.vue' ;
4+ import { usePkpCommentsStore } from './usePkpCommentsStore' ;
45
56export default {
67 title : 'Frontend/PkpComments/PkpScrollToComments' ,
@@ -53,7 +54,8 @@ export const CustomAllComments = {
5354 render : ( ) => ( {
5455 components : { PkpScrollToComments, PkpScrollToCommentsLogInto} ,
5556 setup ( ) {
56- return { commentsStore : window . pkp . registry . getPiniaStore ( 'pkpComments' ) } ;
57+ const commentsStore = usePkpCommentsStore ( ) ;
58+ return { commentsStore} ;
5759 } ,
5860 template : `
5961 <PkpScrollToComments>
@@ -96,9 +98,6 @@ export const CustomLogInto = {
9698 ] ,
9799 render : ( ) => ( {
98100 components : { PkpScrollToComments, PkpScrollToCommentsLogInto} ,
99- setup ( ) {
100- return { commentsStore : window . pkp . registry . getPiniaStore ( 'pkpComments' ) } ;
101- } ,
102101 template : `
103102 <PkpScrollToComments>
104103 <PkpScrollToCommentsLogInto
You can’t perform that action at this time.
0 commit comments