mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-14 22:17:30 -07:00
Add page header to experiments
This commit is contained in:
parent
988d7cba06
commit
ab4b798db5
1 changed files with 29 additions and 17 deletions
|
@ -1,23 +1,31 @@
|
||||||
<template>
|
<template>
|
||||||
<MkStickyContainer>
|
<MkStickyContainer>
|
||||||
|
<template #header
|
||||||
|
><MkPageHeader
|
||||||
|
:actions="headerActions"
|
||||||
|
:tabs="headerTabs"
|
||||||
|
:display-back-button="true"
|
||||||
|
/></template>
|
||||||
|
<MkSpacer :content-max="700" :margin-min="16" :margin-max="32">
|
||||||
<FormSuspense :p="init">
|
<FormSuspense :p="init">
|
||||||
<FormSwitch
|
<FormSwitch
|
||||||
v-model="enableExperimentalPostEditing"
|
v-model="enableExperimentalPostEditing"
|
||||||
@update:modelValue="save"
|
@update:modelValue="save"
|
||||||
class="_formBlock"
|
class="_formBlock"
|
||||||
>
|
>
|
||||||
<template #label
|
<template #label>
|
||||||
><i class="ph-pencil-line ph-bold ph-lg"></i
|
<i class="ph-pencil-line ph-bold ph-lg"></i>
|
||||||
>{{ i18n.ts._experiments.enableExperimentalPostEditing
|
{{ i18n.ts._experiments.enableExperimentalPostEditing }}
|
||||||
}}<span class="level alpha"
|
<span class="level alpha">
|
||||||
>({{ i18n.ts._experiments.alpha }})</span
|
({{ i18n.ts._experiments.alpha }})</span
|
||||||
></template
|
|
||||||
>
|
>
|
||||||
|
</template>
|
||||||
<template #caption>{{
|
<template #caption>{{
|
||||||
i18n.ts._experiments.experimentalPostEditingCaption
|
i18n.ts._experiments.experimentalPostEditingCaption
|
||||||
}}</template>
|
}}</template>
|
||||||
</FormSwitch>
|
</FormSwitch>
|
||||||
</FormSuspense>
|
</FormSuspense>
|
||||||
|
</MkSpacer>
|
||||||
</MkStickyContainer>
|
</MkStickyContainer>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -59,6 +67,10 @@ function save() {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const headerActions = $computed(() => []);
|
||||||
|
|
||||||
|
const headerTabs = $computed(() => []);
|
||||||
|
|
||||||
definePageMetadata({
|
definePageMetadata({
|
||||||
title: i18n.ts._experiments.title,
|
title: i18n.ts._experiments.title,
|
||||||
icon: "ph-flask ph-bold ph-lg",
|
icon: "ph-flask ph-bold ph-lg",
|
||||||
|
|
Loading…
Reference in a new issue