Skip to content

Breadcrumb actions on the open folder keep their old state after Hide or Add to favorites #3945

Closed

Description

@AlexAndBear

Initial Checklist

  • I understand this is a bug report and questions should be posted in the Community Discussions
  • I searched issues and couldn’t find anything (or linked relevant results below)

Bug Description

Actions in the breadcrumb menu of the open folder don't update their own state. After "Hide" on an open received share, the menu still offers "Hide" instead of "Unhide", and a second click sends hidden: true again. "Add to favorites" on an open folder stays "Add to favorites" the same way.

Cause: the breadcrumb menu acts on currentFolder, but updateResourceField in packages/web-pkg/src/composables/piniaStores/resources.ts:75-88 only updates the items of the folder, never currentFolder.

Reproduction Steps

  1. Open a received share, so you are inside it.
  2. Breadcrumb ⋮ → "Hide".
  3. Open the breadcrumb ⋮ again.

The same with "Add to favorites" on any open folder.

Expected Outcome

The menu offers "Unhide" / "Remove from favorites".

Actual Outcome

It still offers "Hide" / "Add to favorites" until the page is reloaded.

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