Skip to content

Commit

Permalink
デフォルトスタイル選択ダイアログでトークスタイルのみを表示する (#1786)
Browse files Browse the repository at this point in the history
only show talk style in default style select dialog
  • Loading branch information
y-chan authored Jan 29, 2024
1 parent 3ce8b3e commit a7016a7
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions src/components/Talk/EditorHome.vue
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,9 @@
:character-infos="orderedAllCharacterInfos"
/>
<default-style-list-dialog
v-if="orderedAllCharacterInfos.length > 0"
v-if="orderedTalkCharacterInfos.length > 0"
v-model="isDefaultStyleSelectDialogOpenComputed"
:character-infos="orderedAllCharacterInfos"
:character-infos="orderedTalkCharacterInfos"
/>
<dictionary-manage-dialog v-model="isDictionaryManageDialogOpenComputed" />
<engine-manage-dialog v-model="isEngineManageDialogOpenComputed" />
Expand Down Expand Up @@ -723,7 +723,15 @@ const isCharacterOrderDialogOpenComputed = computed({
}),
});
// デフォルトスタイル選択
// TODO: デフォルトスタイル選択(ソング)の実装
// デフォルトスタイル選択(トーク)
const orderedTalkCharacterInfos = computed(() => {
const userOrderedCharacterInfos =
store.getters.USER_ORDERED_CHARACTER_INFOS("talk");
if (userOrderedCharacterInfos == undefined)
throw new Error("userOrderedCharacterInfos == undefined");
return userOrderedCharacterInfos;
});
const isDefaultStyleSelectDialogOpenComputed = computed({
get: () =>
!store.state.isAcceptTermsDialogOpen &&
Expand Down

0 comments on commit a7016a7

Please sign in to comment.