@@ -55,13 +55,13 @@ import { dashboardStore, registerStore, schemaStore, navigationStore, configurat
5555 </NcActionButton >
5656 <!-- Register-only actions -->
5757 <template v-if =" type === ' register' " >
58- <NcActionButton close-after-click @click =" registerStore.setRegisterItem (item); navigationStore.setModal('publishRegister')" >
58+ <NcActionButton close-after-click @click =" registerStore.setItem (item); navigationStore.setModal('publishRegister')" >
5959 <template #icon >
6060 <CloudUploadOutline :size =" 20" />
6161 </template >
6262 Publish OAS
6363 </NcActionButton >
64- <NcActionButton close-after-click @click =" registerStore.setRegisterItem (item); navigationStore.setModal('importRegister')" >
64+ <NcActionButton close-after-click @click =" registerStore.setItem (item); navigationStore.setModal('importRegister')" >
6565 <template #icon >
6666 <Upload :size =" 20" />
6767 </template >
@@ -195,15 +195,15 @@ import { dashboardStore, registerStore, schemaStore, navigationStore, configurat
195195 </NcActionButton >
196196 <NcActionButton
197197 close-after-click
198- @click =" registerStore.setRegisterItem (item); schemaStore.setSchemaItem (schema); navigationStore.setModal('exportRegister')" >
198+ @click =" registerStore.setItem (item); schemaStore.setItem (schema); navigationStore.setModal('exportRegister')" >
199199 <template #icon >
200200 <Export :size =" 20" />
201201 </template >
202202 {{ t('openregister', 'Export') }}
203203 </NcActionButton >
204204 <NcActionButton
205205 close-after-click
206- @click =" registerStore.setRegisterItem (item); schemaStore.setSchemaItem (schema); navigationStore.setModal('importRegister')" >
206+ @click =" registerStore.setItem (item); schemaStore.setItem (schema); navigationStore.setModal('importRegister')" >
207207 <template #icon >
208208 <Upload :size =" 20" />
209209 </template >
@@ -418,12 +418,12 @@ export default {
418418 managingConfiguration () {
419419 if (! this .item || ! this .item .id ) return null
420420 if (this .type === ' register' ) {
421- return configurationStore .configurationList .find (
421+ return configurationStore .list .find (
422422 config => config .registers && config .registers .includes (this .item .id ),
423423 ) || null
424424 }
425425 // Schema: config.schemas is an array of objects with .id
426- return configurationStore .configurationList .find (
426+ return configurationStore .list .find (
427427 config => config .schemas && config .schemas .some (s => s .id === this .item .id ),
428428 ) || null
429429 },
@@ -516,7 +516,7 @@ export default {
516516 if (this .type === ' register' ) {
517517 this .showEditRegisterDialog = true
518518 } else {
519- schemaStore .setSchemaItem (this .item )
519+ schemaStore .setItem (this .item )
520520 navigationStore .setModal (' editSchema' )
521521 }
522522 },
@@ -551,8 +551,8 @@ export default {
551551 async loadSchemaOptions () {
552552 this .schemasLoading = true
553553 try {
554- await schemaStore .refreshSchemaList ()
555- this .schemaSelectOptions = schemaStore .schemaList .map (s => ({ id: s .id , label: s .title }))
554+ await schemaStore .refreshList ()
555+ this .schemaSelectOptions = schemaStore .list .map (s => ({ id: s .id , label: s .title }))
556556 } catch (error) {
557557 console .error (' Failed to load schemas:' , error)
558558 } finally {
@@ -569,7 +569,7 @@ export default {
569569 },
570570 async onSaveRegister (formData ) {
571571 try {
572- await registerStore .saveRegister ({
572+ await registerStore .save ({
573573 ... formData,
574574 schemas: (formData .schemas || []).map (s => typeof s === ' object' ? s .id : s),
575575 })
@@ -581,10 +581,10 @@ export default {
581581 },
582582 openDelete () {
583583 if (this .type === ' register' ) {
584- registerStore .setRegisterItem (this .item )
584+ registerStore .setItem (this .item )
585585 navigationStore .setDialog (' deleteRegister' )
586586 } else {
587- schemaStore .setSchemaItem (this .item )
587+ schemaStore .setItem (this .item )
588588 navigationStore .setDialog (' deleteSchema' )
589589 }
590590 },
@@ -596,7 +596,7 @@ export default {
596596
597597 // Register-only methods
598598 viewRegisterDetails () {
599- registerStore .setRegisterItem ({ id: this .item .id })
599+ registerStore .setItem ({ id: this .item .id })
600600 this .$router .push (` /registers/${ this .item .id } ` )
601601 },
602602
@@ -888,7 +888,7 @@ export default {
888888 }
889889
890890 await Promise .all ([
891- registerStore .refreshRegisterList (),
891+ registerStore .refreshList (),
892892 dashboardStore .fetchRegisters (),
893893 ])
894894 } catch (error) {
0 commit comments