tin-spa 2.3.4 → 2.3.5
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/fesm2020/tin-spa.mjs
CHANGED
|
@@ -4711,8 +4711,13 @@ class TableComponent {
|
|
|
4711
4711
|
? button.detailsConfig
|
|
4712
4712
|
: DetailsDialogProcessor.processDetailsConfig(button.detailsConfig, row);
|
|
4713
4713
|
}
|
|
4714
|
-
|
|
4715
|
-
|
|
4714
|
+
if (button.detailsConfig.mode) {
|
|
4715
|
+
conf.formConfig.mode = button.detailsConfig.mode;
|
|
4716
|
+
}
|
|
4717
|
+
else {
|
|
4718
|
+
conf.formConfig.mode = buttonName === 'create' ? 'create' : (buttonName === 'edit' ? 'edit' : 'view');
|
|
4719
|
+
}
|
|
4720
|
+
if (conf.formConfig.mode === 'create') {
|
|
4716
4721
|
conf.heroField = this.config?.heroField;
|
|
4717
4722
|
conf.heroValue = this.config?.heroValue;
|
|
4718
4723
|
}
|