diff --git a/popup/src/classes/DTO/Registers.ts b/popup/src/classes/DTO/Registers.ts index ed627b4..82fe35b 100644 --- a/popup/src/classes/DTO/Registers.ts +++ b/popup/src/classes/DTO/Registers.ts @@ -1,4 +1,5 @@ export class Registers { xtee_mta = '' + ria = '' xtee_pension = '' } diff --git a/popup/src/components/mocks/script.ts b/popup/src/components/mocks/script.ts index a607f45..4cfbe41 100644 --- a/popup/src/components/mocks/script.ts +++ b/popup/src/components/mocks/script.ts @@ -53,6 +53,20 @@ export default class Mocks extends Vue { }) } + onRiaChanged () { + if (this.register2Id.ria === 'undefined') { + return + } + httpClient.changeMockValueConfiguration({ + id: this.register2Id.ria, + value: this.registers.ria + }) + .then((data: any) => { + console.log('updateMock') + console.log(data) + }) + } + saveMocks () { const mockConfigurations: MockConfiguration[] = [] for (const serviceCode in this.registers) { diff --git a/popup/src/components/mocks/template.html b/popup/src/components/mocks/template.html index 29ddc6c..927bc29 100644 --- a/popup/src/components/mocks/template.html +++ b/popup/src/components/mocks/template.html @@ -1,14 +1,4 @@
- - - - - - - - - - +