mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-12-14 21:21:44 +03:00
This commit is contained in:
parent
a1d569bbc9
commit
b8cd2a7993
6
.changes/dialog-to-string.md
Normal file
6
.changes/dialog-to-string.md
Normal file
@ -0,0 +1,6 @@
|
||||
---
|
||||
"api": patch
|
||||
"tauri": patch
|
||||
---
|
||||
|
||||
Use `toString()` on message/confirm/ask dialogs title and message values.
|
File diff suppressed because one or more lines are too long
@ -251,7 +251,7 @@
|
||||
__tauriModule: 'Dialog',
|
||||
message: {
|
||||
cmd: 'messageDialog',
|
||||
message: message
|
||||
message: message.toString()
|
||||
}
|
||||
})
|
||||
}
|
||||
@ -261,7 +261,7 @@
|
||||
__tauriModule: 'Dialog',
|
||||
message: {
|
||||
cmd: 'confirmDialog',
|
||||
message: message
|
||||
message: message.toString()
|
||||
}
|
||||
})
|
||||
}
|
||||
|
@ -207,8 +207,8 @@ async function message(
|
||||
__tauriModule: 'Dialog',
|
||||
message: {
|
||||
cmd: 'messageDialog',
|
||||
message,
|
||||
title: opts?.title,
|
||||
message: message.toString(),
|
||||
title: opts?.title?.toString(),
|
||||
type: opts?.type
|
||||
}
|
||||
})
|
||||
@ -237,8 +237,8 @@ async function ask(
|
||||
__tauriModule: 'Dialog',
|
||||
message: {
|
||||
cmd: 'askDialog',
|
||||
message,
|
||||
title: opts?.title,
|
||||
message: message.toString(),
|
||||
title: opts?.title?.toString(),
|
||||
type: opts?.type
|
||||
}
|
||||
})
|
||||
@ -267,8 +267,8 @@ async function confirm(
|
||||
__tauriModule: 'Dialog',
|
||||
message: {
|
||||
cmd: 'confirmDialog',
|
||||
message,
|
||||
title: opts?.title,
|
||||
message: message.toString(),
|
||||
title: opts?.title?.toString(),
|
||||
type: opts?.type
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user