@decaf-ts/for-angular 0.0.88 → 0.0.89
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.
|
@@ -5131,8 +5131,11 @@ class NgxPageDirective extends NgxComponentDirective {
|
|
|
5131
5131
|
menu = this.menu;
|
|
5132
5132
|
const activeMenu = menu.find((item) => item?.url?.includes(route));
|
|
5133
5133
|
if (activeMenu) {
|
|
5134
|
-
|
|
5135
|
-
|
|
5134
|
+
let label = `${(activeMenu?.title || activeMenu?.label || '').toLowerCase()}`;
|
|
5135
|
+
if (!label.startsWith('menu.')) {
|
|
5136
|
+
label = `menu.${label}`;
|
|
5137
|
+
}
|
|
5138
|
+
const title = `${await this.translate(label)} ${this.appName ? `- ${this.appName}` : ''}`;
|
|
5136
5139
|
this.titleService.setTitle(title);
|
|
5137
5140
|
if (!this.title)
|
|
5138
5141
|
this.title = title;
|
|
@@ -6957,6 +6960,12 @@ let ModalComponent = class ModalComponent extends NgxParentComponentDirective {
|
|
|
6957
6960
|
* @returns {Promise<void>} - A promise that resolves when the event is handled.
|
|
6958
6961
|
*/
|
|
6959
6962
|
async handleEvent(event) {
|
|
6963
|
+
// if (event instanceof Event || event.name === ComponentEventNames.Refresh) {
|
|
6964
|
+
// if (event instanceof Event) {
|
|
6965
|
+
// event.stopImmediatePropagation();
|
|
6966
|
+
// }
|
|
6967
|
+
// return;
|
|
6968
|
+
// }
|
|
6960
6969
|
if (event instanceof Event) {
|
|
6961
6970
|
event.stopImmediatePropagation();
|
|
6962
6971
|
}
|