Skip to content
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

refactor(files): Adjust useNavigation composable to enforce active view #49301

Merged
merged 2 commits into from
Nov 16, 2024

Conversation

susnux
Copy link
Contributor

@susnux susnux commented Nov 15, 2024

Summary

In some cases it is guaranteed that we have a proper active view, e.g. when the file list is loaded (so within FileEntry* components). This does not change anything but the Typescript types, so the currentView is typed as View instead of `View | null´.

Checklist

@susnux susnux added 3. to review Waiting for reviews feature: files ♻️ refactor Refactor code (not a bug fix, not a feature just refactoring) labels Nov 15, 2024
@susnux susnux added this to the Nextcloud 31 milestone Nov 15, 2024
@susnux susnux requested review from a team and removed request for a team November 15, 2024 01:41
@susnux susnux force-pushed the refactor/files-required-navigation branch from d61be26 to c0f02c9 Compare November 16, 2024 13:10
@susnux
Copy link
Contributor Author

susnux commented Nov 16, 2024

/compile

susnux and others added 2 commits November 16, 2024 22:00
…view

In some cases it is guaranteed that we have a proper active view,
e.g. when the file list is loaded (so within FileEntry* components).
This does not change anything but the Typescript types,
so the `currentView` is typed as `View` instead of `View | null´.

Signed-off-by: Ferdinand Thiessen <[email protected]>
Signed-off-by: nextcloud-command <[email protected]>
@susnux susnux force-pushed the refactor/files-required-navigation branch from 575340b to ec1c4d8 Compare November 16, 2024 21:00
@susnux susnux merged commit 30689fc into master Nov 16, 2024
118 checks passed
@susnux susnux deleted the refactor/files-required-navigation branch November 16, 2024 21:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews feature: files ♻️ refactor Refactor code (not a bug fix, not a feature just refactoring)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants