-
Notifications
You must be signed in to change notification settings - Fork 91
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
Migrate from router-link
's tag
prop to v-slot
#3775
Conversation
601b375
to
2df8e5c
Compare
Signed-off-by: Raimund Schlüßler <raimund.schluessler@mailbox.org>
Signed-off-by: Raimund Schlüßler <raimund.schluessler@mailbox.org>
2df8e5c
to
7b3f763
Compare
Signed-off-by: Raimund Schlüßler <raimund.schluessler@mailbox.org>
334518d
to
c2e4fc2
Compare
router-link
's tag
prop to v-slot
@raimund-schluessler I pulled the latest code from this branch and linked it to my forms dev setup. The router warning is indeed gone. Howevere, I got some other errors now. It's also possible that I did something wrong.
the message repeats for |
@Chartman123 thanks for testing the PR. The warnings you see are unrelated to the changes here and are due to npm link, see #3281. We fixed the problem in nextcloud-libraries/webpack-vue-config#432 but that’s not released yet. |
Not my expertise, sorry |
Signed-off-by: Raimund Schlüßler <raimund.schluessler@mailbox.org>
Now that 7.8.0 is out, would anyone have time reviewing this, so I can proceed with #3692? |
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.
All the components looks good and checked.
Thanks for this work!
Especially for removing <nav-element v-bind="{ is }">
😀
This is actually a breaking change: NcListItem entries like Talk's conversations in the left sidebar lost their
Is that fixable without a revert? |
Unfortunately, this PR completely breaks mail because :href is always overwriting :to for some reasons and NcListItem :to links don't work anymore. |
Did you check it with #3922 included? |
Yes, I already did (latest master). Also see my comment there. |
Do you provide both |
I provide only :to={...some object...}. It always worked this way as expected. Now, it is broken. PS: I also tried to explicitly set href="" but that doesn't fix it. |
This PR migrates the
NcAppNavigationItem
,NcButton
andNcListItem
components from using the dreprecatedtag
prop ofrouter-link
to thev-slot
API introduced withvue-router@3.1.0
, see https://v3.router.vuejs.org/api/#v-slot-api-3-1-0. This is required to make the library compatible withvue-router@4
for vue 3 in #3692.There are no functional changes and the markup stays the same. For the dev, nothing should change, besides that the corresponding warning from
vue-router
is gone.The PR is best viewed as https://github.com/nextcloud/nextcloud-vue/pull/3775/files?diff=unified&w=1