Skip to content

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

@jan-mrm

Description

@jan-mrm

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    component:uiUser interfaces bugs and enhancementsenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions