-
Notifications
You must be signed in to change notification settings - Fork 156
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
[full-ci] Remove contextRouteName from app params and add it to the query instead #6622
Conversation
a88e97a
to
4333a24
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fine for me if CI is happy, too
SonarCloud Quality Gate failed. |
const isPublicLinkContext = computed(() => { | ||
return unref(currentRoute).params.contextRouteName === 'files-public-files' | ||
return unref(currentRoute).query[contextRouteNameKey] === 'files-public-files' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you see the useRouteQuery
composable? 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😅
const isPublicLinkContext = computed(() => { | ||
return unref(currentRoute).params.contextRouteName === 'files-public-files' | ||
return unref(currentRoute).query[contextRouteNameKey] === 'files-public-files' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you see the useRouteQuery
composable? 🤔
Description
This removes
contextRouteName
from app parameters. It's handled fully automatically in the url query, so apps can just use the provideduseAppDefaults
composable and don't need to mess with urls themselves for something they really should not have to care about.Nice sideeffect is that it's now visible further in the back of the url and hopefully less confusing for users.
Related Issue
Motivation and Context
Make everything more streamlined and straightforward for developing file editors/viewers.
I've also taken care that changing the query item name is also just a two line patch, as we plan to adjust the naming in the near future.
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist:
Open tasks: