@vgip/meta-ui 1.5.4 → 1.5.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.
|
@@ -486,7 +486,7 @@ const fieldNormalizer = (field, uniqFieldNames) => {
|
|
|
486
486
|
* @Author: Alexander.Vangelov@vonage.com
|
|
487
487
|
* @Date: 2019-09-19 17:34:49
|
|
488
488
|
* @Last Modified by: Alexander.Vangelov@vonage.com
|
|
489
|
-
* @Last Modified time:
|
|
489
|
+
* @Last Modified time: 2023-02-10 09:44:59
|
|
490
490
|
*/
|
|
491
491
|
const sortObj = (obj) => {
|
|
492
492
|
if (typeof (obj) !== 'object' || obj === null) {
|
|
@@ -684,6 +684,7 @@ const metaNormalizer = (meta, integration, resourceType) => {
|
|
|
684
684
|
}
|
|
685
685
|
};
|
|
686
686
|
}
|
|
687
|
+
break;
|
|
687
688
|
}
|
|
688
689
|
}
|
|
689
690
|
if (f.type === 'composite' && f.fields) {
|
|
@@ -797,19 +798,6 @@ const metaNormalizer = (meta, integration, resourceType) => {
|
|
|
797
798
|
metaV3.layout.editable = false;
|
|
798
799
|
}
|
|
799
800
|
}
|
|
800
|
-
else if (integrationCode === 'CLIO') {
|
|
801
|
-
if (resourceType === 'PhoneCommunication') {
|
|
802
|
-
if (metaV3.layout.children && metaV3.layout.children.length) {
|
|
803
|
-
metaV3.layout.children[0].label = 'Time entries';
|
|
804
|
-
metaV3.layout.children[0].name = 'timers';
|
|
805
|
-
}
|
|
806
|
-
for (const f of metaV3.layout.sections[0].fields) {
|
|
807
|
-
if (f.name === 'timers' || f.name === 'time_entries') {
|
|
808
|
-
f.hidden = 'UPDATE';
|
|
809
|
-
}
|
|
810
|
-
}
|
|
811
|
-
}
|
|
812
|
-
}
|
|
813
801
|
return sortObj(metaV3);
|
|
814
802
|
};
|
|
815
803
|
|