-
Notifications
You must be signed in to change notification settings - Fork 81
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
NcRelatedResourcesPanel
click on resourse within one provider reloads a page
#4537
Comments
Proposed solutions sounds good :) Would this implementation be useful in files @skjnldsv and deck @juliushaertl as well? |
Not sure I get the context? 🤔 |
So, in two words, this component shouldn't reload a page, when click on different conversation: It is used also only in Deck atm, if I get it correct: |
The only thing I could think of is creating a global router that plugs into various apps to see if a clicked link does have a router match somewhere and if so, catch the page refresh. 🤔 |
The intention was to scope this per app I believe
The files panel is registered in the related_resources app itself https://github.com/search?type=code&q=org%3Anextcloud+%22NcRelatedResourcesPanel%22 fyi @Antreesy |
But the NcResource.vue is standalone, no? |
If that also helps to cover such app parts and cases, as UnifiedSearch / internal links in Talk messages, I'd like to try it out Otherwise, and for that particular case, I think, 5 lines of changes locally would be sufficient |
Fixed by #5282 |
Issue description
<NcResource/>
renders as a<NcButton/>
component with a following prop:nextcloud-vue/src/components/NcRelatedResourcesPanel/NcResource.vue
Line 28 in a0d0272
which transforms it to a
<a/>
link. Thus, if you click on a<conversation_name>
button inside of Talk app (Shared items tab), it reloads page, instead of switching conversationPossible solution
<NcButton/>
has a support of using<RouterLink/>
withto
prop, so could be done with a check, that global propproviderId
matches with resource fieldproviderId
(and matches 'talk', if it's the only case for Talk app)The text was updated successfully, but these errors were encountered: