Skip to content

After a failed role change, the share still shows the new role #3901

Closed

Description

@AlexAndBear

Steps to reproduce

  1. Open a share's panel with a collaborator.
  2. Make the next role change fail (e.g. the share was removed elsewhere, so the PATCH returns 500).
  3. Change the role via the role dropdown.

Expected

An error is shown and the dropdown reverts to the previously saved role.

Actual

The error toast appears (PATCH 500), but the dropdown keeps showing the new, unsaved role.

Cause

packages/web-app-files/src/components/SideBar/Shares/Collaborators/RoleDropdown.vue sets selectedRole before the save; .../Collaborators/ListItem.vue does not revert it when the save fails.

Found during exploratory QA testing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions