diff --git a/src/app/shared/form/builder/ds-dynamic-form-ui/models/onebox/dynamic-onebox.component.html b/src/app/shared/form/builder/ds-dynamic-form-ui/models/onebox/dynamic-onebox.component.html
index 3c19ecda13..8681f13433 100644
--- a/src/app/shared/form/builder/ds-dynamic-form-ui/models/onebox/dynamic-onebox.component.html
+++ b/src/app/shared/form/builder/ds-dynamic-form-ui/models/onebox/dynamic-onebox.component.html
@@ -21,8 +21,8 @@
-
-
+ () => this.changeSearchingStatus(false));
click$ = new Subject();
@@ -151,6 +152,15 @@ export class DsDynamicOneboxComponent extends DsDynamicVocabularyComponent imple
this.cdr.detectChanges();
}
+ /**
+ * Changes the loadingInitialValue status
+ * @param status
+ */
+ changeLoadingInitialValueStatus(status: boolean) {
+ this.loadingInitialValue = status;
+ this.cdr.detectChanges();
+ }
+
/**
* Checks if configured vocabulary is Hierarchical or not
*/
@@ -257,8 +267,10 @@ export class DsDynamicOneboxComponent extends DsDynamicVocabularyComponent imple
setCurrentValue(value: any, init = false): void {
let result: string;
if (init) {
+ this.changeLoadingInitialValueStatus(true);
this.getInitValueFromModel()
.subscribe((formValue: FormFieldMetadataValueObject) => {
+ this.changeLoadingInitialValueStatus(false);
this.currentValue = formValue;
this.cdr.detectChanges();
});