@nebularstreams/libmui 2.5.70 → 2.5.71
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/package.json +1 -1
- package/src/index.js +1 -0
- package/src/util/fuckingconfirm.js +1 -1
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -27,6 +27,7 @@ import {CoolContentTicker, CoolGenericTicker, GenericButtonTicker, optionsPrompt
|
|
|
27
27
|
import EmptyButton from "./widgets/EmptyButton";
|
|
28
28
|
import CoolerEmpty from "./widgets/CoolerEmpty";
|
|
29
29
|
import tainter from "./util/tainter"
|
|
30
|
+
import UploadFile from "./widgets/UploadFile.js"
|
|
30
31
|
|
|
31
32
|
import MainState, {implement as MainStateImplement} from "./app/MainState";
|
|
32
33
|
|
|
@@ -15,7 +15,7 @@ function confirmPromise(text, options = ["NO", "YES"], cancelError = "cancelled"
|
|
|
15
15
|
return new Promise((resolve, reject) => {
|
|
16
16
|
ConfirmPromise(null, text, options, () => reject(new Error(cancelError)))
|
|
17
17
|
.then(({idx}) => {
|
|
18
|
-
if (idx) {
|
|
18
|
+
if (idx >= 0) {
|
|
19
19
|
resolve(idx);
|
|
20
20
|
} else {
|
|
21
21
|
reject(new Error(cancelError));
|