1
0

fix: make sure share modals don't have a create button

Resolves F-869
This commit is contained in:
kolaente 2022-10-23 13:03:09 +02:00
parent 8fdd3e785d
commit ae27502022
No known key found for this signature in database
GPG Key ID: F40E70337AB24C9B
3 changed files with 9 additions and 3 deletions

View File

@ -10,7 +10,7 @@
:loading="loading" :loading="loading"
> >
<div class="p-4"> <div class="p-4">
<slot /> <slot/>
</div> </div>
<template #footer> <template #footer>
@ -30,10 +30,12 @@
{{ $t('misc.cancel') }} {{ $t('misc.cancel') }}
</x-button> </x-button>
<x-button <x-button
v-if="hasPrimaryAction"
variant="primary" variant="primary"
@click.prevent.stop="primary()" @click.prevent.stop="primary()"
:icon="primaryIcon" :icon="primaryIcon"
:disabled="primaryDisabled || loading" :disabled="primaryDisabled || loading"
class="ml-2"
> >
{{ primaryLabel || $t('misc.create') }} {{ primaryLabel || $t('misc.create') }}
</x-button> </x-button>
@ -60,6 +62,10 @@ defineProps({
type: Boolean, type: Boolean,
default: false, default: false,
}, },
hasPrimaryAction: {
type: Boolean,
default: true,
},
tertiary: { tertiary: {
type: String, type: String,
default: '', default: '',

View File

@ -1,7 +1,7 @@
<template> <template>
<create-edit <create-edit
:title="$t('list.share.header')" :title="$t('list.share.header')"
primary-label="" :has-primary-action="false"
> >
<template v-if="list"> <template v-if="list">
<userTeam <userTeam

View File

@ -1,7 +1,7 @@
<template> <template>
<create-edit <create-edit
:title="title" :title="title"
primary-label="" :has-primary-action="false"
> >
<template v-if="namespace"> <template v-if="namespace">
<manageSharing <manageSharing