migrate: switch to callbacks instead of events
This commit is contained in:
1 parent
c7e2963390
commit
b291aeebf8
67 files changed
+332
-357
No files matched your search
@@ -139,7 +139,7 @@
|
||||
? '!text-red-500'
|
||||
: ''}"
|
||||
aria-label={$t('routes.admin.applications.deny')}
|
||||
on:click={() => review(false)}
|
||||
onclick={() => review(false)}
|
||||
loading={denying || reviewing}
|
||||
disabled={approving || denying || reviewing}
|
||||
>
|
||||
@@ -154,7 +154,7 @@
|
||||
? '!text-green-500'
|
||||
: ''}"
|
||||
title={$t('routes.admin.applications.approve')}
|
||||
on:click={() => review(true)}
|
||||
onclick={() => review(true)}
|
||||
loading={approving}
|
||||
disabled={approving || denying || reviewing}
|
||||
>
|
||||
|
||||
@@ -175,7 +175,7 @@
|
||||
|
||||
<Header pageHeader class="font-bold text-2xl flex items-center justify-between">
|
||||
{$t('routes.admin.federation.title')}
|
||||
<Button color="primary" on:click={save} loading={saving} disabled={saving}>
|
||||
<Button color="primary" onclick={save} loading={saving} disabled={saving}>
|
||||
{$t('common.save')}
|
||||
</Button>
|
||||
</Header>
|
||||
@@ -239,7 +239,7 @@
|
||||
</div>
|
||||
<Button
|
||||
size="square-md"
|
||||
on:click={() => {
|
||||
onclick={() => {
|
||||
if (!data.federated_instances?.federated_instances?.blocked)
|
||||
return
|
||||
|
||||
@@ -323,7 +323,7 @@
|
||||
</div>
|
||||
<Button
|
||||
size="square-md"
|
||||
on:click={() => {
|
||||
onclick={() => {
|
||||
if (!data.federated_instances?.federated_instances?.allowed)
|
||||
return
|
||||
|
||||
|
||||
@@ -51,7 +51,7 @@
|
||||
<Header pageHeader class="justify-between">
|
||||
{$t('routes.admin.taglines.title')}<Button
|
||||
color="primary"
|
||||
on:click={save}
|
||||
onclick={save}
|
||||
loading={saving}
|
||||
disabled={saving}
|
||||
size="lg"
|
||||
@@ -78,7 +78,7 @@
|
||||
<Markdown source={tagline} inline />
|
||||
|
||||
<div class="flex gap-2 ml-auto">
|
||||
<Button on:click={() => action(tagline)} size="square-md">
|
||||
<Button onclick={() => action(tagline)} size="square-md">
|
||||
<Icon src={Trash} mini size="16" />
|
||||
</Button>
|
||||
</div>
|
||||
@@ -137,7 +137,7 @@
|
||||
</Button>
|
||||
</form>
|
||||
|
||||
<Button on:click={save} color="primary" size="lg" class="w-full">
|
||||
<Button onclick={save} color="primary" size="lg" class="w-full">
|
||||
{$t('common.save')}
|
||||
</Button>
|
||||
</div>
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
{#each data.site?.admins ?? [] as admin}
|
||||
<div class="py-3 flex items-center justify-between">
|
||||
<UserLink avatar showInstance={false} user={admin.person} />
|
||||
<Button on:click={() => action(admin.person.id)} size="square-md">
|
||||
<Button onclick={() => action(admin.person.id)} size="square-md">
|
||||
<Icon src={Trash} mini size="16" />
|
||||
</Button>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user