Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
remko48 committed Oct 15, 2024
1 parent 19bdcde commit cbc252f
Showing 1 changed file with 1 addition and 89 deletions.
90 changes: 1 addition & 89 deletions src/views/AdminSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -300,87 +300,7 @@ export default {
initialization: false,
saving: false,
settingsData: {},
availableRegisters: [
{
id: 1,
title: 'New Register',
description: 'feafea',
schemas: [
{
id: 1,
title: 'New Schema',
version: '1.10',
description: 'eafeaf',
summary: 'efafeaaefefa',
required: [],
properties: [],
updated: '2024-10-14T16:09:58+00:00',
created: '2024-10-14T16:10:03+00:00',
},
],
source: '',
tablePrefix: 'gea',
updated: '2024-10-14T16:10:22+00:00',
created: '2024-10-14T16:10:28+00:00',
},
],
testRegisters: [
{
id: '1',
title: 'New Register',
description: 'feafea',
schemas: [
{
id: '1',
title: 'New Schema',
version: '1.10',
description: 'eafeaf',
summary: 'efafeaaefefa',
required: [],
properties: [],
updated: '2024-10-14T16:09:58+00:00',
created: '2024-10-14T16:10:03+00:00',
},
],
source: '',
tablePrefix: 'gea',
updated: '2024-10-14T16:10:22+00:00',
created: '2024-10-14T16:10:28+00:00',
},
{
id: '2',
title: 'Test register',
description: 'feafeafeafea',
schemas: [
{
id: '1',
title: 'Test Schema',
version: '1.10',
description: 'eafeaf',
summary: 'efafeaaefefa',
required: [],
properties: [],
updated: '2024-10-14T16:09:58+00:00',
created: '2024-10-14T16:10:03+00:00',
},
{
id: '2',
title: 'Another Test Schema',
version: '1.10',
description: 'eafeaf',
summary: 'efafeaaefefa',
required: [],
properties: [],
updated: '2024-10-14T16:09:58+00:00',
created: '2024-10-14T16:10:03+00:00',
},
],
source: '',
tablePrefix: 'gea',
updated: '2024-10-14T16:10:22+00:00',
created: '2024-10-14T16:10:28+00:00',
},
],
availableRegisters: [],
publication: {
selectedSource: '',
selectedRegister: '',
Expand Down Expand Up @@ -597,7 +517,6 @@ export default {
},
methods: {
setRegisterSchemaOptions(registerId, property) {
// const selectedRegister = this.testRegisters.find((register) => register.id.toString() === registerId)
const selectedRegister = this.settingsData.availableRegisters.find((register) => register.id.toString() === registerId)
this[property].availableSchemas = {
Expand Down Expand Up @@ -630,13 +549,6 @@ export default {
})),
}
// this.availableRegisters = {
// options: this.testRegisters.map((register) => ({
// value: register.id,
// label: register.title,
// })),
// }
data.objectTypes.forEach((objectType) => {
if (data[objectType + '_register']) {
Expand Down

0 comments on commit cbc252f

Please sign in to comment.