@tauri-apps/plugin-dialog 2.0.0 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist-js/index.cjs +4 -4
- package/dist-js/index.js +4 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -12,7 +12,7 @@ Native system dialogs for opening and saving files along with message dialogs.
|
|
|
12
12
|
|
|
13
13
|
## Install
|
|
14
14
|
|
|
15
|
-
_This plugin requires a Rust version of at least **1.
|
|
15
|
+
_This plugin requires a Rust version of at least **1.77.2**_
|
|
16
16
|
|
|
17
17
|
There are three general methods of installation that we can recommend.
|
|
18
18
|
|
|
@@ -54,7 +54,7 @@ yarn add https://github.com/tauri-apps/tauri-plugin-dialog#v2
|
|
|
54
54
|
|
|
55
55
|
First you need to register the core plugin with Tauri:
|
|
56
56
|
|
|
57
|
-
`src-tauri/src/
|
|
57
|
+
`src-tauri/src/lib.rs`
|
|
58
58
|
|
|
59
59
|
```rust
|
|
60
60
|
fn main() {
|
package/dist-js/index.cjs
CHANGED
|
@@ -141,8 +141,8 @@ async function ask(message, options) {
|
|
|
141
141
|
message: message.toString(),
|
|
142
142
|
title: opts?.title?.toString(),
|
|
143
143
|
kind: opts?.kind,
|
|
144
|
-
|
|
145
|
-
|
|
144
|
+
yesButtonLabel: opts?.okLabel?.toString(),
|
|
145
|
+
noButtonLabel: opts?.cancelLabel?.toString()
|
|
146
146
|
});
|
|
147
147
|
}
|
|
148
148
|
/**
|
|
@@ -167,8 +167,8 @@ async function confirm(message, options) {
|
|
|
167
167
|
message: message.toString(),
|
|
168
168
|
title: opts?.title?.toString(),
|
|
169
169
|
kind: opts?.kind,
|
|
170
|
-
okButtonLabel: opts?.okLabel?.toString()
|
|
171
|
-
cancelButtonLabel: opts?.cancelLabel?.toString()
|
|
170
|
+
okButtonLabel: opts?.okLabel?.toString(),
|
|
171
|
+
cancelButtonLabel: opts?.cancelLabel?.toString()
|
|
172
172
|
});
|
|
173
173
|
}
|
|
174
174
|
|
package/dist-js/index.js
CHANGED
|
@@ -139,8 +139,8 @@ async function ask(message, options) {
|
|
|
139
139
|
message: message.toString(),
|
|
140
140
|
title: opts?.title?.toString(),
|
|
141
141
|
kind: opts?.kind,
|
|
142
|
-
|
|
143
|
-
|
|
142
|
+
yesButtonLabel: opts?.okLabel?.toString(),
|
|
143
|
+
noButtonLabel: opts?.cancelLabel?.toString()
|
|
144
144
|
});
|
|
145
145
|
}
|
|
146
146
|
/**
|
|
@@ -165,8 +165,8 @@ async function confirm(message, options) {
|
|
|
165
165
|
message: message.toString(),
|
|
166
166
|
title: opts?.title?.toString(),
|
|
167
167
|
kind: opts?.kind,
|
|
168
|
-
okButtonLabel: opts?.okLabel?.toString()
|
|
169
|
-
cancelButtonLabel: opts?.cancelLabel?.toString()
|
|
168
|
+
okButtonLabel: opts?.okLabel?.toString(),
|
|
169
|
+
cancelButtonLabel: opts?.cancelLabel?.toString()
|
|
170
170
|
});
|
|
171
171
|
}
|
|
172
172
|
|