fix(settings/options/language): key not found because language wasn't loaded yet
This commit is contained in:
@@ -8,7 +8,7 @@ const MODAL_TIME = 0.25;
|
||||
export const useConfirmationModal = defineStore("confirmationModal", {
|
||||
state: () => ({
|
||||
isOpen: false,
|
||||
text: "",
|
||||
text: "" as string | (() => string),
|
||||
aLabel: null as string | null,
|
||||
bLabel: null as string | null,
|
||||
onActivateA: null as (() => void) | null,
|
||||
@@ -24,7 +24,7 @@ export const useConfirmationModal = defineStore("confirmationModal", {
|
||||
|
||||
actions: {
|
||||
open(options: {
|
||||
text: string;
|
||||
text: string | (() => string);
|
||||
aLabel?: string;
|
||||
bLabel?: string;
|
||||
onActivateA?: () => void;
|
||||
|
||||
Reference in New Issue
Block a user