mirror of
https://github.com/modrinth/code.git
synced 2026-08-24 16:44:51 +00:00
fix: panel issues w/ backups (#7009)
This commit is contained in:
@@ -52,7 +52,7 @@
|
|||||||
:color="action.color === 'standard' ? undefined : (action.color ?? 'brand')"
|
:color="action.color === 'standard' ? undefined : (action.color ?? 'brand')"
|
||||||
size="xl"
|
size="xl"
|
||||||
:disabled="action.disabled"
|
:disabled="action.disabled"
|
||||||
class="!w-full"
|
class="flex-1"
|
||||||
@click="action.onClick"
|
@click="action.onClick"
|
||||||
>
|
>
|
||||||
<component :is="action.icon" v-if="action.icon && !action.showAltIcon" class="size-4" />
|
<component :is="action.icon" v-if="action.icon && !action.showAltIcon" class="size-4" />
|
||||||
@@ -64,7 +64,7 @@
|
|||||||
{{ action.label }}
|
{{ action.label }}
|
||||||
</Button>
|
</Button>
|
||||||
|
|
||||||
<Button v-if="errorDetails" size="xl" class="!w-full" @click="copyErrorInformation">
|
<Button v-if="errorDetails" size="xl" class="flex-1" @click="copyErrorInformation">
|
||||||
<CopyIcon v-if="!infoCopied" class="size-4" />
|
<CopyIcon v-if="!infoCopied" class="size-4" />
|
||||||
<CheckIcon v-else class="size-4" />
|
<CheckIcon v-else class="size-4" />
|
||||||
Copy Information
|
Copy Information
|
||||||
|
|||||||
@@ -112,7 +112,8 @@ const overflowMenuOptions = computed<OverflowMenuOption[]>(() => {
|
|||||||
options.push({
|
options.push({
|
||||||
id: 'download',
|
id: 'download',
|
||||||
label: formatMessage(commonMessages.downloadButton),
|
label: formatMessage(commonMessages.downloadButton),
|
||||||
action: () => emit('download'),
|
type: 'link',
|
||||||
|
href: `https://${props.kyrosUrl}/modrinth/v0/backups/${props.backup.id}/download?auth=${props.jwt}`,
|
||||||
disabled: !props.kyrosUrl || !props.jwt,
|
disabled: !props.kyrosUrl || !props.jwt,
|
||||||
})
|
})
|
||||||
|
|
||||||
@@ -279,7 +280,12 @@ const creatorAvatarSrc = computed(() =>
|
|||||||
<RotateCounterClockwiseIcon class="size-5" />
|
<RotateCounterClockwiseIcon class="size-5" />
|
||||||
{{ formatMessage(messages.restore) }}
|
{{ formatMessage(messages.restore) }}
|
||||||
</Button>
|
</Button>
|
||||||
<TeleportOverflowMenu type="quiet" label="More options" :options="overflowMenuOptions">
|
<TeleportOverflowMenu
|
||||||
|
type="quiet"
|
||||||
|
label="More options"
|
||||||
|
:options="overflowMenuOptions"
|
||||||
|
@select="(option) => option.id === 'download' && emit('download')"
|
||||||
|
>
|
||||||
<MoreVerticalIcon class="size-5" />
|
<MoreVerticalIcon class="size-5" />
|
||||||
<template #copy-id>
|
<template #copy-id>
|
||||||
<ClipboardCopyIcon class="size-5" />
|
<ClipboardCopyIcon class="size-5" />
|
||||||
|
|||||||
Reference in New Issue
Block a user