fix: make sure share modals don't have a create button
Resolves F-869
This commit is contained in:
parent
8fdd3e785d
commit
ae27502022
@ -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: '',
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user