Skip to content

Disable sync option replace checkbox in UI if the option is disabled on server side #22625

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
jan-mrm opened this issue Apr 9, 2025 · 0 comments · May be fixed by #22647
Open

Disable sync option replace checkbox in UI if the option is disabled on server side #22625

jan-mrm opened this issue Apr 9, 2025 · 0 comments · May be fixed by #22647
Labels
enhancement New feature or request

Comments

@jan-mrm
Copy link

jan-mrm commented Apr 9, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
1 participant