2024-09-24 10:23:25 +02:00
|
|
|
const model = {
|
|
|
|
app: {
|
2024-09-27 14:47:29 +02:00
|
|
|
pages: [],
|
|
|
|
page: 'search',
|
|
|
|
loggedInUserId: null,
|
2024-09-24 10:23:25 +02:00
|
|
|
},
|
|
|
|
inputs : {
|
|
|
|
search: {
|
|
|
|
text: '',
|
|
|
|
},
|
|
|
|
createNew: {
|
|
|
|
name: '',
|
|
|
|
email: '',
|
|
|
|
},
|
|
|
|
delete: {
|
|
|
|
areYouSure: false,
|
|
|
|
personId: null,
|
|
|
|
},
|
|
|
|
edit: {
|
|
|
|
personId: null,
|
|
|
|
name: '',
|
|
|
|
email: '',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// felles data
|
|
|
|
people: [
|
|
|
|
{ id: 1, name: 'Per', email: 'per@mail.com'},
|
2024-09-27 14:47:29 +02:00
|
|
|
],
|
2024-09-24 10:23:25 +02:00
|
|
|
}
|