Skip to content

Commit

Permalink
書き出し完了時のメッセージでlabファイルと表記するように変更
Browse files Browse the repository at this point in the history
  • Loading branch information
sigprogramming committed Dec 17, 2024
1 parent 5faa5d0 commit 01fc8d4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/components/Dialog/Dialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
import { DotNotationDispatch } from "@/store/vuex";
import { withProgress } from "@/store/ui";

type MediaType = "audio" | "text";
type MediaType = "audio" | "text" | "label";

export type TextDialogResult = "OK" | "CANCEL";
export type AlertDialogOptions = {
Expand Down Expand Up @@ -275,6 +275,7 @@ const showWriteSuccessNotify = ({
const mediaTypeNames: Record<MediaType, string> = {
audio: "音声",
text: "テキスト",
label: "labファイル",
};
void actions.SHOW_NOTIFY_AND_NOT_SHOW_AGAIN_BUTTON({
message: `${mediaTypeNames[mediaType]}を書き出しました`,
Expand Down
2 changes: 1 addition & 1 deletion src/components/Sing/menuBarData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export const useMenuBarData = () => {
}
notifyResult(
results[0], // TODO: SaveResultObject[] に対応する
"text",
"label",
store.actions,
store.state.confirmedTips.notifyOnGenerate,
);
Expand Down

0 comments on commit 01fc8d4

Please sign in to comment.