Skip to content

Commit

Permalink
feat(UserMenu): add target property to hyperlink on UserMenuEntry com…
Browse files Browse the repository at this point in the history
…ponent

Signed-off-by: Fitrah Munir <[email protected]>
  • Loading branch information
fitrahmunir committed Nov 23, 2023
1 parent faa6ac3 commit e79a07b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions core/src/components/UserMenu/UserMenuEntry.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
class="menu-entry">
<a v-if="href"
:href="href"
:target="target"
:class="{ active }"
@click.exact="handleClick">
<NcLoadingIcon v-if="loading"
Expand Down Expand Up @@ -71,6 +72,10 @@ export default {
type: Boolean,
required: true,
},
target: {
type: String,
required: false,
},
icon: {
type: String,
required: true,
Expand Down
1 change: 1 addition & 0 deletions core/src/views/UserMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
:key="entry.id"
:name="entry.name"
:href="entry.href"
:target="entry.target"
:active="entry.active"
:icon="entry.icon" />
</ul>
Expand Down

0 comments on commit e79a07b

Please sign in to comment.