Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: SettingDialog.vueのボタントグルを共通化 #2111

Conversation

Hiroshiba
Copy link
Member

@Hiroshiba Hiroshiba commented Jun 1, 2024

内容

のリファクタリングプルリクエストの一つです。
設定項目内の、複数のボタンから一つを選ぶトグルボタンを共通化します。

関連 Issue

ref #1854

その他

チェック項目メモ

  • ちゃんと変更できる
  • ホバーした時に説明が出る
  • disableされるかチェック

@Hiroshiba Hiroshiba requested a review from a team as a code owner June 1, 2024 14:07
@Hiroshiba Hiroshiba marked this pull request as draft June 1, 2024 15:20
@Hiroshiba Hiroshiba marked this pull request as ready for review June 1, 2024 18:43
Comment on lines -14 to +21
onUpdated: (value: boolean) => void;
// eslint-disable-next-line vue/prop-name-casing
"onUpdate:modelValue"?: (value: boolean) => void;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

v-modelを使ってる場合これじゃないとエラーになるっぽかったです。(quasar準拠)
ToggleCellでv-model使ってるケースは今のところ無いのですが、ButtonToggle側に合わせてこうしました。

@Hiroshiba
Copy link
Member Author

たぶん大丈夫だと思うのでマージします!!

@Hiroshiba Hiroshiba merged commit 5d96ba7 into VOICEVOX:main Jun 10, 2024
9 checks passed
@Hiroshiba Hiroshiba deleted the SettingDialog.vueのボタントグルを共通化 branch June 10, 2024 18:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant