-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Description
Summary
After the implementation of an server side option to disable sync with replace (#21427) I'd like to 'disable' the checkbox in the ui additionally.
Motivation
That the server checks the permission is great but I'm a fan of showing the user his options - based on their permissions / the setting/options. So I feel like it would be nice to disable the replace checkbox in the sync dialog if the server option to disable it is set.
Cross-reference also to this issue about the same topic but based on user permissions: #5013
Proposal
As far as I saw the server option would just need to be exposed in some endpoint so that the ui can get the information and then disable the checkbox based on the setting in the ui.
That is already done for other options so it seems to just be an extension of whats already present.
I'd like to open a PR for this proposing an implementation.