keystonejs-contrib / k6-contrib

Keyston-6 contrib
MIT License
35 stars 18 forks source link

Support for read view #26

Closed sladg closed 3 months ago

sladg commented 2 years ago

Currently, in ui.itemView.fieldMode option for read does not work. If read is used, then there is no link for file displayed, in case edit option is used, everything works fine, link is visible together with edit buttons.

I would like to have option to use read and display link to the file without the extra buttons.

Sample code to replicate the issue:

    attachement: s3mappedField({
      ui: {
        itemView: { fieldMode: 'read' },
      },
    }),

Empty UI for Attachment

Screenshot 2022-02-12 at 14 34 53
gautamsi commented 3 months ago

fixed by showing disabled buttons for read mode (6.1.1)