Skip to content

Commit

Permalink
isPrimaryColorButton
Browse files Browse the repository at this point in the history
  • Loading branch information
Hiroshiba committed Dec 13, 2024
1 parent 9309808 commit 5091811
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/Dialog/Dialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export type ConfirmDialogOptions = {
title: string;
message: string;
actionName: string; // ボタンテキスト
idPrimaryColorButton?: boolean; // ボタンをPrimary色にするか
isPrimaryColorButton?: boolean; // ボタンをPrimary色にするか
cancel?: string;
};
export type WarningDialogOptions = {
Expand Down Expand Up @@ -101,7 +101,7 @@ export const showConfirmDialog = async (options: ConfirmDialogOptions) => {
message: options.message,
buttons: [
options.cancel,
options.idPrimaryColorButton
options.isPrimaryColorButton
? { text: options.actionName, color: "primary" }
: options.actionName,
],
Expand Down
2 changes: 1 addition & 1 deletion src/components/Dialog/EngineManageDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ const requireReload = async (message: string) => {
message: message,
actionName: "再読み込みする",
cancel: "後で",
idPrimaryColorButton: true,
isPrimaryColorButton: true,
});
toInitialState();
if (result === "OK") {
Expand Down

0 comments on commit 5091811

Please sign in to comment.