chore(frontend): disable donation thingy for now

This commit is contained in:
MiniDigger | Martin 2022-12-24 15:57:11 +01:00
parent 0ff65d9f8f
commit 6edc1d2ff5
2 changed files with 5 additions and 2 deletions

View File

@ -90,7 +90,7 @@ const slug = computed(() => props.project.namespace.owner + "/" + props.project.
class="min-h-10"
/>
<DonationModal
v-if="project.settings.donation.enable"
v-if="project.settings.donation.enable && false"
:donation-subject="project.settings.donation.subject"
:donation-target="project.namespace.owner + '/' + project.name"
/>

View File

@ -33,6 +33,7 @@ import { validProjectName } from "~/composables/useHangarValidations";
import "vue-advanced-cropper/dist/style.css";
import InputAutocomplete from "~/lib/components/ui/InputAutocomplete.vue";
import { definePageMeta } from "#imports";
import Alert from "~/lib/components/design/Alert.vue";
definePageMeta({
projectPermsRequired: ["EDIT_SUBJECT_SETTINGS"],
@ -427,14 +428,16 @@ useHead(
</ProjectSettingsSection>
</template>
<template #donation>
<Alert type="info" class="my-4">Coming Soon!</Alert>
<ProjectSettingsSection title="project.settings.donation.enable">
<InputCheckbox v-model="form.settings.donation.enable" :label="i18n.t('project.settings.donation.enableSub')" />
<InputCheckbox v-model="form.settings.donation.enable" :label="i18n.t('project.settings.donation.enableSub')" disabled />
</ProjectSettingsSection>
<ProjectSettingsSection title="project.settings.donation.subject" description="project.settings.donation.subjectSub">
<InputText
v-model="form.settings.donation.subject"
:label="i18n.t('project.settings.donation.subjectLabel')"
:rules="[requiredIf()(form.settings.donation.enable)]"
disabled
/>
</ProjectSettingsSection>
</template>