nextcloud / build

🏗 App builder for Nextcloud
GNU Affero General Public License v3.0
3 stars 0 forks source link

Allow to save property type of a ressource #11

Open skjnldsv opened 3 years ago

skjnldsv commented 3 years ago
views: {
    navigation: {
        type: 'list',
        title: '15661595-e808-4d65-8e25-8875ce20fcc6',
        image: '0317e9e8-1b2c-4e36-958c-01429a0b98c8',
        ...
    },
    ...
}

We store the uuid of the ressource, BUT we don't store the desired data within the ressource

If it's a contact, how do we know which data to output? If we need a text, maybe the user selected the Address, or the DisplayName, or the Phone number... etc One uuid can provide multiple data

Suggestion:

views: {
    navigation: {
        title: {
            uuid: '15661595-e808-4d65-8e25-8875ce20fcc6',
            type: 'displayname',
        },
        ...
    },
    ...
},