mirror of
https://github.com/HangarMC/Hangar.git
synced 2025-03-07 15:31:00 +08:00
fix(frontend): allow change platform versions again
This commit is contained in:
parent
6fe362c40e
commit
5c7ee484a3
@ -50,7 +50,7 @@ function save() {
|
||||
|
||||
<Button class="mt-3" :disabled="loading" @click="save">{{ i18n.t("general.save") }}</Button>
|
||||
<template #activator="{ on }">
|
||||
<Button class="text-sm" v-on="on"><IconMdiPencil /></Button>
|
||||
<Button class="text-sm" v-on="on" v-bind="$attrs"><IconMdiPencil /></Button>
|
||||
</template>
|
||||
</Modal>
|
||||
</template>
|
||||
|
@ -28,6 +28,7 @@ import TextAreaModal from "~/lib/components/modals/TextAreaModal.vue";
|
||||
import DependencyEditModal from "~/components/modals/DependencyEditModal.vue";
|
||||
import ComingSoon from "~/lib/components/design/ComingSoon.vue";
|
||||
import Spoiler from "~/lib/components/design/Spoiler.vue";
|
||||
import PlatformVersionEditModal from "~/components/modals/PlatformVersionEditModal.vue";
|
||||
|
||||
const route = useRoute();
|
||||
const i18n = useI18n();
|
||||
@ -317,6 +318,13 @@ async function restoreVersion() {
|
||||
<PlatformLogo :platform="platform" :size="24" class="mr-1" />
|
||||
{{ useBackendData.platforms.get(platform).name }}
|
||||
({{ projectVersion?.platformDependenciesFormatted[platform] }})
|
||||
<PlatformVersionEditModal
|
||||
class="ml-2"
|
||||
v-if="hasPerms(NamedPermission.EDIT_VERSION)"
|
||||
:project="project"
|
||||
:version="version"
|
||||
:platform="useBackendData.platforms.get(platform)"
|
||||
/>
|
||||
</div>
|
||||
</Card>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user