Find a better way to hide the "Save to Files" button #38

Open
opened 1 year ago by neil · 0 comments
neil commented 1 year ago
Owner

A button "Save to Files" is displayed on the Forms Results view, to export the form answers to the Files app.

This button must be disabled since the Files app must be inaccessible. Here's the CSS code used to hide it (in sncf v1.5.0) :

#content-vue ~ div.popover.vue-popover-theme.open > div > div > div > div > ul > li[data-v-6c7cb9ab=""][data-v-889584e6=""]:nth-child(1) {
    display:none !important;
}

The data-v-* attributes needs to be updated at every single Nextcloud (or rather NC Forms?) update – anyway, it needs to be updated very regularly.

If we could just use some class or whatever to hide it by other means, it would lessen the number of breaking changes at every update.

On a second thought, may be ask upstream to add an id or a data attribute on this button?

A button "Save to Files" is displayed on the Forms Results view, to export the form answers to the Files app. This button must be disabled since the Files app must be inaccessible. Here's the CSS code used to hide it (in sncf v1.5.0) : ```css #content-vue ~ div.popover.vue-popover-theme.open > div > div > div > div > ul > li[data-v-6c7cb9ab=""][data-v-889584e6=""]:nth-child(1) { display:none !important; } ``` The `data-v-*` attributes needs to be updated at every single Nextcloud (or rather NC Forms?) update – anyway, it needs to be updated very regularly. If we could just use some class or whatever to hide it by other means, it would lessen the number of breaking changes at every update. On a second thought, may be ask upstream to add an id or a data attribute on this button?
neil added the
help wanted
priority:medium
enhancement
labels 1 year ago
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: neil/sncf#38
Loading…
There is no content yet.