Release 202506241430
This commit is contained in:
@@ -361,6 +361,22 @@ const apiCalls = await Astro.locals.banners.try(
|
||||
value={service.tosUrls.join('\n')}
|
||||
error={serviceInputErrors.tosUrls}
|
||||
/>
|
||||
<InputText
|
||||
label="Operating since"
|
||||
name="operatingSince"
|
||||
description="Date the service started operating"
|
||||
inputProps={{
|
||||
type: 'date',
|
||||
value: service.operatingSince
|
||||
? new Date(
|
||||
service.operatingSince.getTime() - service.operatingSince.getTimezoneOffset() * 60000
|
||||
)
|
||||
.toISOString()
|
||||
.slice(0, 10)
|
||||
: '',
|
||||
}}
|
||||
error={serviceInputErrors.operatingSince}
|
||||
/>
|
||||
<InputText
|
||||
label="Referral link path"
|
||||
name="referral"
|
||||
|
||||
@@ -461,6 +461,25 @@ if (!user) return Astro.rewrite('/404')
|
||||
<InputSubmitButton label="Submit" icon="ri:add-line" hideCancel />
|
||||
</form>
|
||||
</FormSection>
|
||||
|
||||
<FormSection title="Delete User">
|
||||
{
|
||||
user.admin || user.moderator ? (
|
||||
<p class="text-center text-balance">This user can't be deleted</p>
|
||||
) : (
|
||||
<p class="text-center text-balance">
|
||||
To delete this user,
|
||||
<a
|
||||
href={`/account/impersonate?targetUserId=${user.id}&redirect=/account/delete`}
|
||||
data-astro-prefetch="tap"
|
||||
class="underline"
|
||||
>
|
||||
impersonate it and go to /account/delete
|
||||
</a>
|
||||
</p>
|
||||
)
|
||||
}
|
||||
</FormSection>
|
||||
</BaseLayout>
|
||||
|
||||
<script>
|
||||
|
||||
Reference in New Issue
Block a user