Skip to content

Commit

Permalink
Merge pull request #4555 from dartcafe/enh/nc-app-navigation-new-type
Browse files Browse the repository at this point in the history
allow type property for NcAppNavigationNew
  • Loading branch information
susnux committed Oct 3, 2023
2 parents 6b1f9d2 + 0949cb7 commit 7277f04
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/components/NcAppNavigationNew/NcAppNavigationNew.vue
Expand Up @@ -47,6 +47,7 @@
<div class="app-navigation-new">
<NcButton :id="buttonId"
:disabled="disabled"
:type="type"
@click="$emit('click')">
<template #icon>
<slot name="icon" />
Expand Down Expand Up @@ -78,6 +79,13 @@ export default {
type: String,
required: true,
},
type: {
type: String,
default: 'primary',
validator(value) {
return ['primary', 'secondary', 'tertiary'].indexOf(value) !== -1
},
},
},
emits: ['click'],
Expand Down

0 comments on commit 7277f04

Please sign in to comment.