fix(client): テーマの管理が行えない問題を修正

This commit is contained in:
syuilo 2021-10-17 21:23:15 +09:00
parent b0992de59d
commit 4a90c7aef8
2 changed files with 8 additions and 7 deletions

View file

@ -17,6 +17,7 @@
- API: users/search および users/search-by-username-and-host を強化 - API: users/search および users/search-by-username-and-host を強化
### Bugfixes ### Bugfixes
- クライアント: テーマの管理が行えない問題を修正
## 12.92.0 (2021/10/16) ## 12.92.0 (2021/10/16)

View file

@ -10,13 +10,13 @@
</optgroup> </optgroup>
</FormSelect> </FormSelect>
<template v-if="selectedTheme"> <template v-if="selectedTheme">
<FormInput readonly :value="selectedTheme.author"> <FormInput readonly :modelValue="selectedTheme.author">
<span>{{ $ts.author }}</span> <span>{{ $ts.author }}</span>
</FormInput> </FormInput>
<FormTextarea readonly :value="selectedTheme.desc" v-if="selectedTheme.desc"> <FormTextarea readonly :modelValue="selectedTheme.desc" v-if="selectedTheme.desc">
<span>{{ $ts._theme.description }}</span> <span>{{ $ts._theme.description }}</span>
</FormTextarea> </FormTextarea>
<FormTextarea readonly tall :value="selectedThemeCode"> <FormTextarea readonly tall :modelValue="selectedThemeCode">
<span>{{ $ts._theme.code }}</span> <span>{{ $ts._theme.code }}</span>
<template #desc><button @click="copyThemeCode()" class="_textButton">{{ $ts.copy }}</button></template> <template #desc><button @click="copyThemeCode()" class="_textButton">{{ $ts.copy }}</button></template>
</FormTextarea> </FormTextarea>
@ -28,12 +28,12 @@
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue'; import { defineComponent } from 'vue';
import * as JSON5 from 'json5'; import * as JSON5 from 'json5';
import FormTextarea from '@client/components/form/textarea.vue'; import FormTextarea from '@client/components/debobigego/textarea.vue';
import FormSelect from '@client/components/form/select.vue'; import FormSelect from '@client/components/debobigego/select.vue';
import FormRadios from '@client/components/form/radios.vue'; import FormRadios from '@client/components/debobigego/radios.vue';
import FormBase from '@client/components/debobigego/base.vue'; import FormBase from '@client/components/debobigego/base.vue';
import FormGroup from '@client/components/debobigego/group.vue'; import FormGroup from '@client/components/debobigego/group.vue';
import FormInput from '@client/components/form/input.vue'; import FormInput from '@client/components/debobigego/input.vue';
import FormButton from '@client/components/debobigego/button.vue'; import FormButton from '@client/components/debobigego/button.vue';
import { Theme, builtinThemes } from '@client/scripts/theme'; import { Theme, builtinThemes } from '@client/scripts/theme';
import copyToClipboard from '@client/scripts/copy-to-clipboard'; import copyToClipboard from '@client/scripts/copy-to-clipboard';