@etsoo/appscript 1.2.18 → 1.2.19
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/lib/cjs/app/CoreApp.js +2 -2
- package/lib/mjs/app/CoreApp.js +2 -2
- package/package.json +1 -1
- package/src/app/CoreApp.ts +1 -1
package/lib/cjs/app/CoreApp.js
CHANGED
|
@@ -650,7 +650,7 @@ class CoreApp {
|
|
|
650
650
|
* @param forceToLocal Force to local labels
|
|
651
651
|
*/
|
|
652
652
|
formatResult(result, forceToLocal) {
|
|
653
|
-
var _a
|
|
653
|
+
var _a;
|
|
654
654
|
const title = result.title;
|
|
655
655
|
if (title && /^\w+$/.test(title)) {
|
|
656
656
|
const key = title.formatInitial(false);
|
|
@@ -671,7 +671,7 @@ class CoreApp {
|
|
|
671
671
|
if (result.field && ((_a = result.title) === null || _a === void 0 ? void 0 : _a.includes('{0}'))) {
|
|
672
672
|
const fieldLabel = this.get(result.field.formatInitial(false));
|
|
673
673
|
if (fieldLabel)
|
|
674
|
-
|
|
674
|
+
result.title = result.title.format(fieldLabel);
|
|
675
675
|
}
|
|
676
676
|
}
|
|
677
677
|
/**
|
package/lib/mjs/app/CoreApp.js
CHANGED
|
@@ -647,7 +647,7 @@ export class CoreApp {
|
|
|
647
647
|
* @param forceToLocal Force to local labels
|
|
648
648
|
*/
|
|
649
649
|
formatResult(result, forceToLocal) {
|
|
650
|
-
var _a
|
|
650
|
+
var _a;
|
|
651
651
|
const title = result.title;
|
|
652
652
|
if (title && /^\w+$/.test(title)) {
|
|
653
653
|
const key = title.formatInitial(false);
|
|
@@ -668,7 +668,7 @@ export class CoreApp {
|
|
|
668
668
|
if (result.field && ((_a = result.title) === null || _a === void 0 ? void 0 : _a.includes('{0}'))) {
|
|
669
669
|
const fieldLabel = this.get(result.field.formatInitial(false));
|
|
670
670
|
if (fieldLabel)
|
|
671
|
-
|
|
671
|
+
result.title = result.title.format(fieldLabel);
|
|
672
672
|
}
|
|
673
673
|
}
|
|
674
674
|
/**
|
package/package.json
CHANGED
package/src/app/CoreApp.ts
CHANGED
|
@@ -1335,7 +1335,7 @@ export abstract class CoreApp<
|
|
|
1335
1335
|
// When title contains {0}, replace with the field label
|
|
1336
1336
|
if (result.field && result.title?.includes('{0}')) {
|
|
1337
1337
|
const fieldLabel = this.get(result.field.formatInitial(false));
|
|
1338
|
-
if (fieldLabel) result.title
|
|
1338
|
+
if (fieldLabel) result.title = result.title.format(fieldLabel);
|
|
1339
1339
|
}
|
|
1340
1340
|
}
|
|
1341
1341
|
|