diff options
| author | syuilo <4439005+syuilo@users.noreply.github.com> | 2025-08-26 09:08:00 +0900 |
|---|---|---|
| committer | syuilo <4439005+syuilo@users.noreply.github.com> | 2025-08-26 09:08:00 +0900 |
| commit | 9e5c8d94bff0352bca3b15fd75a7c6ccaa1df2ff (patch) | |
| tree | e6e86b8b5297d615890ce2f35692d95c78e3fd9e /packages/frontend/src/pages/settings/theme.install.vue | |
| parent | refactoe (diff) | |
| download | misskey-9e5c8d94bff0352bca3b15fd75a7c6ccaa1df2ff.tar.gz misskey-9e5c8d94bff0352bca3b15fd75a7c6ccaa1df2ff.tar.bz2 misskey-9e5c8d94bff0352bca3b15fd75a7c6ccaa1df2ff.zip | |
refactor
Diffstat (limited to 'packages/frontend/src/pages/settings/theme.install.vue')
| -rw-r--r-- | packages/frontend/src/pages/settings/theme.install.vue | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/frontend/src/pages/settings/theme.install.vue b/packages/frontend/src/pages/settings/theme.install.vue index ac95279402..f79357c361 100644 --- a/packages/frontend/src/pages/settings/theme.install.vue +++ b/packages/frontend/src/pages/settings/theme.install.vue @@ -10,8 +10,8 @@ SPDX-License-Identifier: AGPL-3.0-only </MkCodeEditor> <div class="_buttons"> - <MkButton :disabled="installThemeCode == null || installThemeCode.trim() === ''" inline @click="() => previewTheme(installThemeCode)"><i class="ti ti-eye"></i> {{ i18n.ts.preview }}</MkButton> - <MkButton :disabled="installThemeCode == null || installThemeCode.trim() === ''" primary inline @click="() => install(installThemeCode)"><i class="ti ti-check"></i> {{ i18n.ts.install }}</MkButton> + <MkButton :disabled="installThemeCode == null || installThemeCode.trim() === ''" inline @click="() => previewTheme(installThemeCode!)"><i class="ti ti-eye"></i> {{ i18n.ts.preview }}</MkButton> + <MkButton :disabled="installThemeCode == null || installThemeCode.trim() === ''" primary inline @click="() => install(installThemeCode!)"><i class="ti ti-check"></i> {{ i18n.ts.install }}</MkButton> </div> </div> </template> @@ -39,7 +39,7 @@ async function install(code: string): Promise<void> { }); installThemeCode.value = null; router.push('/settings/theme'); - } catch (err) { + } catch (err: any) { switch (err.message.toLowerCase()) { case 'this theme is already installed': os.alert({ |