@nettyapps/ntybase 21.1.5 → 21.1.6
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.
|
@@ -2027,8 +2027,11 @@ class NettyAgGridListBase extends NettyAgGridBase {
|
|
|
2027
2027
|
effect(() => {
|
|
2028
2028
|
const name = this.pageName();
|
|
2029
2029
|
if (name) {
|
|
2030
|
-
const translationKey = `@${name}`;
|
|
2030
|
+
const translationKey = name.startsWith('@') ? name : `@${name}`;
|
|
2031
2031
|
this.translateService.stream(translationKey).subscribe((translated) => {
|
|
2032
|
+
if (translated == translationKey) {
|
|
2033
|
+
translated = name;
|
|
2034
|
+
}
|
|
2032
2035
|
this.titleService.setTitle(`${translated}`);
|
|
2033
2036
|
this.pageTitleService.setTitle(translated);
|
|
2034
2037
|
});
|
|
@@ -2093,7 +2096,7 @@ class NettyAgGridListBase extends NettyAgGridBase {
|
|
|
2093
2096
|
}
|
|
2094
2097
|
currentPageTitle = computed(() => {
|
|
2095
2098
|
const name = this.pageName();
|
|
2096
|
-
return name ? `@${name}` : '@Page_Title';
|
|
2099
|
+
return name ? name.startsWith('@') ? name : `@${name}` : '@Page_Title';
|
|
2097
2100
|
}, ...(ngDevMode ? [{ debugName: "currentPageTitle" }] : []));
|
|
2098
2101
|
// *****************************************
|
|
2099
2102
|
// *** Logging Functions ***
|