not-bulma 1.0.13 → 1.0.14
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
CHANGED
|
@@ -32,14 +32,14 @@ export default class CRUDActionCreate {
|
|
|
32
32
|
},
|
|
33
33
|
data: defData
|
|
34
34
|
});
|
|
35
|
-
controller.ui[ACTION]
|
|
35
|
+
controller.ui[ACTION].on('submit', async (data) => {
|
|
36
36
|
const success = await controller.onActionSubmit(createActionName, data);
|
|
37
37
|
if(success){
|
|
38
38
|
controller.ui[ACTION].setFormSuccess();
|
|
39
39
|
setTimeout(() => controller.goList(), 1000);
|
|
40
40
|
}
|
|
41
41
|
});
|
|
42
|
-
controller.ui[ACTION]
|
|
42
|
+
controller.ui[ACTION].on('reject', controller.goList.bind(controller));
|
|
43
43
|
controller.emit(`after:render:${ACTION}`);
|
|
44
44
|
}catch(e){
|
|
45
45
|
controller.report(e);
|
|
@@ -48,7 +48,7 @@ export default class CRUDActionDetails {
|
|
|
48
48
|
data: res.result
|
|
49
49
|
});
|
|
50
50
|
controller.emit(`after:render:${ACTION}`);
|
|
51
|
-
controller.ui[ACTION]
|
|
51
|
+
controller.ui[ACTION].on('reject', controller.goList.bind(controller));
|
|
52
52
|
}catch(e){
|
|
53
53
|
controller.report(e);
|
|
54
54
|
controller.showErrorMessage(e);
|
|
@@ -51,13 +51,13 @@ export default class CRUDActionUpdate{
|
|
|
51
51
|
data: notCommon.stripProxy(res.result)
|
|
52
52
|
});
|
|
53
53
|
|
|
54
|
-
controller.ui[ACTION]
|
|
54
|
+
controller.ui[ACTION].on('submit', async (ev) => {
|
|
55
55
|
const success = await controller.onActionSubmit(ACTION, ev.detail);
|
|
56
56
|
if(success){
|
|
57
57
|
setTimeout(() => controller.goDetails(id), 1000);
|
|
58
58
|
}
|
|
59
59
|
});
|
|
60
|
-
controller.ui[ACTION]
|
|
60
|
+
controller.ui[ACTION].on('reject', controller.goList.bind(controller));
|
|
61
61
|
controller.emit(`after:render:${ACTION}`);
|
|
62
62
|
}catch(e){
|
|
63
63
|
controller.report(e);
|