feat: handle invite_only plausible analytics
This commit is contained in:
parent
8ed134105f
commit
615f8cfd3b
@ -165,7 +165,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
async function changeSettings(name: any) {
|
async function changeSettings(name: any) {
|
||||||
if (!$appSession.isAdmin) return
|
if (!$appSession.isAdmin) return;
|
||||||
try {
|
try {
|
||||||
if (name === 'dualCerts') {
|
if (name === 'dualCerts') {
|
||||||
dualCerts = !dualCerts;
|
dualCerts = !dualCerts;
|
||||||
@ -278,7 +278,14 @@
|
|||||||
<div class="grid grid-flow-row gap-2 px-4">
|
<div class="grid grid-flow-row gap-2 px-4">
|
||||||
<div class="mt-2 grid grid-cols-2 items-center">
|
<div class="mt-2 grid grid-cols-2 items-center">
|
||||||
<label for="name">{$t('forms.name')}</label>
|
<label for="name">{$t('forms.name')}</label>
|
||||||
<input name="name" id="name" class="w-full" disabled={!$appSession.isAdmin} bind:value={service.name} required />
|
<input
|
||||||
|
name="name"
|
||||||
|
id="name"
|
||||||
|
class="w-full"
|
||||||
|
disabled={!$appSession.isAdmin}
|
||||||
|
bind:value={service.name}
|
||||||
|
required
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="grid grid-cols-2 items-center">
|
<div class="grid grid-cols-2 items-center">
|
||||||
<label for="version">Version / Tag</label>
|
<label for="version">Version / Tag</label>
|
||||||
@ -483,7 +490,7 @@
|
|||||||
required={variable?.required}
|
required={variable?.required}
|
||||||
/>
|
/>
|
||||||
{:else if variable.defaultValue === 'true' || variable.defaultValue === 'false'}
|
{:else if variable.defaultValue === 'true' || variable.defaultValue === 'false'}
|
||||||
{#if variable.value === 'true' || variable.value === 'false'}
|
{#if variable.value === 'true' || variable.value === 'false' || variable.value === 'invite_only'}
|
||||||
<select
|
<select
|
||||||
class="w-full font-normal"
|
class="w-full font-normal"
|
||||||
readonly={isDisabled}
|
readonly={isDisabled}
|
||||||
@ -497,6 +504,9 @@
|
|||||||
>
|
>
|
||||||
<option value="true">enabled</option>
|
<option value="true">enabled</option>
|
||||||
<option value="false">disabled</option>
|
<option value="false">disabled</option>
|
||||||
|
{#if service.type.startsWith('plausibleanalytics') && variable.id == 'config_disable_registration'}
|
||||||
|
<option value="invite_only">invite_only</option>
|
||||||
|
{/if}
|
||||||
</select>
|
</select>
|
||||||
{:else}
|
{:else}
|
||||||
<select
|
<select
|
||||||
|
Loading…
x
Reference in New Issue
Block a user