Skip to content

Commit 0318ca0

Browse files
committed
feat(button): Added option to not have label on New button
Signed-off-by: Jonas Stene <[email protected]>
1 parent df58cee commit 0318ca0

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

lib/vue/components/UploadPicker.vue

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
<NcActions v-else
2828
:aria-label="buttonLabel"
29-
:menu-name="buttonLabel"
29+
:menu-name="noLabel ? '' : buttonLabel"
3030
:open.sync="openedMenu"
3131
:type="primary ? 'primary' : 'secondary'">
3232
<template #icon>
@@ -225,6 +225,14 @@ export default defineComponent({
225225
default: false,
226226
},
227227
228+
/**
229+
* Allow to disable the button label
230+
*/
231+
noLabel: {
232+
type: Boolean,
233+
default: false,
234+
},
235+
228236
/**
229237
* Make the "New"-button primary color.
230238
*/

0 commit comments

Comments
 (0)