@smartsoft001/angular 1.1.693 → 1.1.701
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/bundles/smartsoft001-angular.umd.js +6 -2
- package/bundles/smartsoft001-angular.umd.js.map +1 -1
- package/esm2015/lib/services/app/app.service.js +7 -3
- package/fesm2015/smartsoft001-angular.js +6 -2
- package/fesm2015/smartsoft001-angular.js.map +1 -1
- package/lib/services/app/app.service.d.ts +2 -0
- package/package.json +5 -5
- package/smartsoft001-angular.metadata.json +1 -1
|
@@ -2572,6 +2572,7 @@
|
|
|
2572
2572
|
this.translate = translate;
|
|
2573
2573
|
this.router = router;
|
|
2574
2574
|
this.endButtons$ = AppService._endButtonsSource$.asObservable();
|
|
2575
|
+
this.title$ = AppService._titleSource$.asObservable();
|
|
2575
2576
|
}
|
|
2576
2577
|
AppService.prototype.addEndButton = function (button) {
|
|
2577
2578
|
if (button.id) {
|
|
@@ -2602,7 +2603,7 @@
|
|
|
2602
2603
|
this.router.events.subscribe(function (event) {
|
|
2603
2604
|
if (event instanceof i3.NavigationEnd) {
|
|
2604
2605
|
var data = event;
|
|
2605
|
-
_this.
|
|
2606
|
+
var title = _this._baseTitle + ' | '
|
|
2606
2607
|
+ data.urlAfterRedirects.split('/')
|
|
2607
2608
|
.filter(function (x) { return x && x.trim(); })
|
|
2608
2609
|
.map(function (x) {
|
|
@@ -2610,13 +2611,16 @@
|
|
|
2610
2611
|
var translate = _this.translate.instant(key);
|
|
2611
2612
|
return key === translate ? x : translate;
|
|
2612
2613
|
})
|
|
2613
|
-
.join(' | ')
|
|
2614
|
+
.join(' | ');
|
|
2615
|
+
_this.titleService.setTitle(title);
|
|
2616
|
+
AppService._titleSource$.next(title);
|
|
2614
2617
|
}
|
|
2615
2618
|
});
|
|
2616
2619
|
};
|
|
2617
2620
|
return AppService;
|
|
2618
2621
|
}());
|
|
2619
2622
|
AppService._endButtonsSource$ = new rxjs.BehaviorSubject([]);
|
|
2623
|
+
AppService._titleSource$ = new rxjs.BehaviorSubject('');
|
|
2620
2624
|
/** @nocollapse */ AppService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function AppService_Factory() { return new AppService(i0__namespace.ɵɵinject(i1__namespace$1.Title), i0__namespace.ɵɵinject(i2__namespace.TranslateService), i0__namespace.ɵɵinject(i3__namespace.Router)); }, token: AppService, providedIn: "root" });
|
|
2621
2625
|
/** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
|
|
2622
2626
|
AppService.decorators = [
|