@osovitny/anatoly 2.14.34 → 2.14.36
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.
|
@@ -3905,18 +3905,18 @@ class UrlSlugComponent extends BaseEditComponent {
|
|
|
3905
3905
|
let event = { urlSlug: slugedText };
|
|
3906
3906
|
this.generating.emit(event);
|
|
3907
3907
|
this.setFormValue(this.controlName, event.urlSlug);
|
|
3908
|
-
this.hrefGo = `${event.urlSlug}`;
|
|
3909
3908
|
}
|
|
3910
3909
|
startWatching() {
|
|
3911
|
-
|
|
3912
|
-
|
|
3913
|
-
|
|
3914
|
-
|
|
3915
|
-
|
|
3916
|
-
|
|
3917
|
-
|
|
3918
|
-
|
|
3919
|
-
|
|
3910
|
+
this.subs.sink = this.formGroup.get(this.watchedControlName).valueChanges.subscribe(value => {
|
|
3911
|
+
if (this.firstValue) {
|
|
3912
|
+
this.firstValue = false;
|
|
3913
|
+
return;
|
|
3914
|
+
}
|
|
3915
|
+
this.generateUrlSlug(value);
|
|
3916
|
+
});
|
|
3917
|
+
this.subs.sink = this.formGroup.get(this.controlName).valueChanges.subscribe(value => {
|
|
3918
|
+
this.hrefGo = value;
|
|
3919
|
+
});
|
|
3920
3920
|
}
|
|
3921
3921
|
//Events
|
|
3922
3922
|
onUrlSlugChange() {
|