Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions core/src/views/Profile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@
class="user-actions__primary"
:href="primaryAction.target"
:icon="primaryAction.icon"
:target="primaryAction.id === 'phone' ? '_self' :'_blank'">
:target="primaryAction.id === 'phone' ? '_self' :'_blank'"
:rel="primaryAction.id === 'fediverse' ? 'me': null">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
:rel="primaryAction.id === 'fediverse' ? 'me': null">
:rel="primaryAction.id === 'fediverse' ? 'me': undefined">

I think this makes it more clear and we use it like this on other places

<template #icon>
<!-- Fix for https://github.com/nextcloud-libraries/nextcloud-vue/issues/2315 -->
<img :src="primaryAction.icon" alt="" class="user-actions__primary__icon">
Expand All @@ -80,7 +81,8 @@
:key="action.id"
:close-after-click="true"
:href="action.target"
:target="action.id === 'phone' ? '_self' :'_blank'">
:target="action.id === 'phone' ? '_self' :'_blank'"
:rel="action.id === 'fediverse' ? 'me': null">
<template #icon>
<!-- Fix for https://github.com/nextcloud-libraries/nextcloud-vue/issues/2315 -->
<img :src="action.icon" alt="" class="user-actions__other__icon">
Expand Down
Loading