@c8y/ngx-components 1017.0.23 → 1017.0.24
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/esm2020/context-dashboard/context-dashboard.component.mjs +8 -2
- package/esm2020/core/common/humanize-app-name.pipe.mjs +3 -2
- package/fesm2015/c8y-ngx-components-context-dashboard.mjs +3 -1
- package/fesm2015/c8y-ngx-components-context-dashboard.mjs.map +1 -1
- package/fesm2015/c8y-ngx-components.mjs +2 -1
- package/fesm2015/c8y-ngx-components.mjs.map +1 -1
- package/fesm2020/c8y-ngx-components-context-dashboard.mjs +7 -1
- package/fesm2020/c8y-ngx-components-context-dashboard.mjs.map +1 -1
- package/fesm2020/c8y-ngx-components.mjs +2 -1
- package/fesm2020/c8y-ngx-components.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1435,10 +1435,16 @@ class ContextDashboardComponent {
|
|
|
1435
1435
|
* @param selected Define a selected component to switch to edit mode directly.
|
|
1436
1436
|
*/
|
|
1437
1437
|
async addWidget(selected) {
|
|
1438
|
+
const partialCloneSelected = selected
|
|
1439
|
+
? {
|
|
1440
|
+
...selected,
|
|
1441
|
+
data: cloneDeep(selected.data)
|
|
1442
|
+
}
|
|
1443
|
+
: selected;
|
|
1438
1444
|
const initialState = {
|
|
1439
1445
|
mo: this.mo,
|
|
1440
1446
|
context: this.context.c8y_Report ? {} : this.context,
|
|
1441
|
-
selected:
|
|
1447
|
+
selected: partialCloneSelected
|
|
1442
1448
|
};
|
|
1443
1449
|
const modal = this.bsModal.show(WidgetConfigComponent, {
|
|
1444
1450
|
class: 'modal-lg',
|