diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2022-06-20 17:38:49 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-20 17:38:49 +0900 |
| commit | 699f24f3dcdb156838eb70602885c0b2cdd02cbc (patch) | |
| tree | 45b28eeadbb7d9e7f3847bd04f75ed010153619a /packages/client/src/pages/settings/webhook.edit.vue | |
| parent | refactor: チャットルームをComposition API化 (#8850) (diff) | |
| download | misskey-699f24f3dcdb156838eb70602885c0b2cdd02cbc.tar.gz misskey-699f24f3dcdb156838eb70602885c0b2cdd02cbc.tar.bz2 misskey-699f24f3dcdb156838eb70602885c0b2cdd02cbc.zip | |
refactor(client): Refine routing (#8846)
Diffstat (limited to 'packages/client/src/pages/settings/webhook.edit.vue')
| -rw-r--r-- | packages/client/src/pages/settings/webhook.edit.vue | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/packages/client/src/pages/settings/webhook.edit.vue b/packages/client/src/pages/settings/webhook.edit.vue index 3690526b41..d3cf5d7b79 100644 --- a/packages/client/src/pages/settings/webhook.edit.vue +++ b/packages/client/src/pages/settings/webhook.edit.vue @@ -40,19 +40,11 @@ import FormSection from '@/components/form/section.vue'; import FormSwitch from '@/components/form/switch.vue'; import FormButton from '@/components/ui/button.vue'; import * as os from '@/os'; -import * as symbols from '@/symbols'; import { i18n } from '@/i18n'; - -defineExpose({ - [symbols.PAGE_INFO]: { - title: 'Edit webhook', - icon: 'fas fa-bolt', - bg: 'var(--bg)', - }, -}); +import { definePageMetadata } from '@/scripts/page-metadata'; const webhook = await os.api('i/webhooks/show', { - webhookId: new URLSearchParams(window.location.search).get('id') + webhookId: new URLSearchParams(window.location.search).get('id'), }); let name = $ref(webhook.name); @@ -86,4 +78,14 @@ async function save(): Promise<void> { active, }); } + +const headerActions = $computed(() => []); + +const headerTabs = $computed(() => []); + +definePageMetadata({ + title: 'Edit webhook', + icon: 'fas fa-bolt', + bg: 'var(--bg)', +}); </script> |