not-bulma 1.0.85 → 1.0.87
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
|
@@ -175,6 +175,7 @@ class CRUDGenericAction {
|
|
|
175
175
|
},
|
|
176
176
|
validators: controller.getOptions("Validators"),
|
|
177
177
|
variants: controller.getOptions(`variants.${this.ACTION}`, {}),
|
|
178
|
+
masters: controller.getOptions(`${this.ACTION}.masters`, {}),
|
|
178
179
|
},
|
|
179
180
|
data: this.TRANSFORMER(response.result),
|
|
180
181
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import CRUDGenericAction from "./action";
|
|
2
|
-
import notCommon from
|
|
2
|
+
import notCommon from "../../../common";
|
|
3
3
|
const ACTION = "create";
|
|
4
4
|
const DEFAUL_BREADCRUMB_TAIL = "Создание";
|
|
5
5
|
|
|
@@ -41,7 +41,7 @@ class CRUDGenericActionCreate extends CRUDGenericAction {
|
|
|
41
41
|
return !reponse;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
static getTitle(contoller, params, response){
|
|
44
|
+
static getTitle(contoller, params, response) {
|
|
45
45
|
return contoller.getItemTitle(response);
|
|
46
46
|
}
|
|
47
47
|
|
|
@@ -55,12 +55,12 @@ class CRUDGenericActionCreate extends CRUDGenericAction {
|
|
|
55
55
|
name: `${controller.getName()}.${this.ACTION}Form`,
|
|
56
56
|
validators: controller.getOptions("Validators"),
|
|
57
57
|
variants: controller.getOptions(`variants.${this.ACTION}`, {}),
|
|
58
|
+
masters: controller.getOptions(`${this.ACTION}.masters`, {}),
|
|
58
59
|
},
|
|
59
60
|
data: this.TRANSFORMER(response),
|
|
60
61
|
};
|
|
61
62
|
}
|
|
62
63
|
|
|
63
|
-
|
|
64
64
|
/**
|
|
65
65
|
* Binds events to action UI
|
|
66
66
|
* @param {object} controller instance of controller
|
|
@@ -65,8 +65,9 @@ class CRUDGenericActionUpdate extends CRUDGenericAction {
|
|
|
65
65
|
variants: controller.getOptions(`variants.${this.ACTION}`, {}),
|
|
66
66
|
ui: controller.getOptions(`${this.ACTION}.ui`, {}),
|
|
67
67
|
fields: controller.getOptions(`${this.ACTION}.fields`, {}),
|
|
68
|
+
masters: controller.getOptions(`${this.ACTION}.masters`, {}),
|
|
68
69
|
},
|
|
69
|
-
data: this.TRANSFORMER(notCommon.stripProxy(
|
|
70
|
+
data: this.TRANSFORMER(notCommon.stripProxy(response.result)),
|
|
70
71
|
};
|
|
71
72
|
}
|
|
72
73
|
|