fix: make sure share modals don't have a create button
continuous-integration/drone/push Build is passing Details

Resolves F-869
This commit is contained in:
kolaente 2022-10-23 13:03:09 +02:00
parent 8fdd3e785d
commit ae27502022
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
3 changed files with 9 additions and 3 deletions

View File

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

View File

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

View File

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