Commit 52550c6 1 parent cb4dc7c commit 52550c6 Copy full SHA for 52550c6
File tree 3 files changed +36
-28
lines changed
3 files changed +36
-28
lines changed Original file line number Diff line number Diff line change 52
52
53
53
created () {
54
54
55
- this .profileStore .$subscribe (async (mutation , state )=> {
55
+ // this.profileStore.$subscribe(async (mutation, state)=>{
56
56
57
- if (mutation && mutation .events && mutation .events .target && mutation .events .target [' @guid' ] ){
57
+ // if (mutation && mutation.events && mutation.events.target && mutation.events.target['@guid'] ){
58
58
59
- window .clearTimeout (this .timeout )
60
- this .timeout = window .setTimeout (()=> {
59
+ // window.clearTimeout(this.timeout)
60
+ // this.timeout = window.setTimeout(()=>{
61
61
62
- this .refreshMarc ()
62
+ // this.refreshMarc()
63
63
64
- },500 )
64
+ // },500)
65
65
66
66
67
67
68
- }
68
+ // }
69
69
70
70
71
- }, { detached: true })
71
+ // }, { detached: true })
72
72
73
73
// build the XML on first load
74
74
this .$nextTick (()=> {
Original file line number Diff line number Diff line change 65
65
66
66
created () {
67
67
68
- this .profileStore .$subscribe (async (mutation , state )=> {
68
+ // this.profileStore.$subscribe(async (mutation, state)=>{
69
69
70
- if (mutation && mutation .events && mutation .events .target && mutation .events .target [' @guid' ] ){
70
+ // if (mutation && mutation.events && mutation.events.target && mutation.events.target['@guid'] ){
71
71
72
- window .clearTimeout (this .timeout )
73
- this .timeout = window .setTimeout (()=> {
72
+ // window.clearTimeout(this.timeout)
73
+ // this.timeout = window.setTimeout(()=>{
74
74
75
- this .refreshXml ()
75
+ // this.refreshXml()
76
76
77
- },500 )
77
+ // },500)
78
78
79
79
80
80
81
- }
81
+ // }
82
82
83
83
84
- // if (state.profilesLoaded && Object.keys(state.activeProfile).length == 0){
85
- // // the profilesLoaded flipped and there is no active profile, so load the data
86
- // this.profileStore.loadRecordFromBackend(this.$route.params.recordId)
87
- // }else{
88
- // //console.error("profilesLoaded is never true, cannot load into data")
89
- // }
84
+ // // if (state.profilesLoaded && Object.keys(state.activeProfile).length == 0){
85
+ // // // the profilesLoaded flipped and there is no active profile, so load the data
86
+ // // this.profileStore.loadRecordFromBackend(this.$route.params.recordId)
87
+ // // }else{
88
+ // // //console.error("profilesLoaded is never true, cannot load into data")
89
+ // // }
90
90
91
91
92
- }, { detached: true })
92
+ // }, { detached: true })
93
93
94
94
// build the XML on first load
95
95
this .$nextTick (()=> {
Original file line number Diff line number Diff line change 174
174
created : function (){
175
175
176
176
177
- this .profileStore .$subscribe (async (mutation , state )=> {
178
- console .log (state .profilesLoaded , Object .keys (state .activeProfile ).length )
177
+ // this.profileStore.$subscribe(async (mutation, state)=>{
178
+ // console.log(state.profilesLoaded, Object.keys(state.activeProfile).length)
179
179
180
- if (state .profilesLoaded && Object .keys (state .activeProfile ).length == 0 ){
180
+ // if (state.profilesLoaded && Object.keys(state.activeProfile).length == 0){
181
+ // // the profilesLoaded flipped and there is no active profile, so load the data
182
+ // this.profileStore.loadRecordFromBackend(this.$route.params.recordId)
183
+ // }else{
184
+ // //console.error("profilesLoaded is never true, cannot load into data")
185
+ // }
186
+
187
+
188
+ // }, { detached: true })
189
+
190
+ if (state .profilesLoaded && Object .keys (state .activeProfile ).length == 0 ){
181
191
// the profilesLoaded flipped and there is no active profile, so load the data
182
192
this .profileStore .loadRecordFromBackend (this .$route .params .recordId )
183
193
}else {
184
194
// console.error("profilesLoaded is never true, cannot load into data")
185
195
}
186
-
187
-
188
- }, { detached: true })
196
+ }
189
197
190
198
191
199
You can’t perform that action at this time.
0 commit comments