@headless-adminapp/app 1.4.44 → 1.4.45
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.
|
@@ -144,7 +144,7 @@ var DefaultCommandBuilder;
|
|
|
144
144
|
text: strings.edit,
|
|
145
145
|
localizedTexts: extractLocalizedStrings(localizedSrings, (x) => x.edit),
|
|
146
146
|
}),
|
|
147
|
-
SubgridCommandBuilder_1.SubgridCommandBuilder.
|
|
147
|
+
SubgridCommandBuilder_1.SubgridCommandBuilder.createViewRecordCommand({
|
|
148
148
|
Icon: icons.View,
|
|
149
149
|
text: strings.view,
|
|
150
150
|
localizedTexts: extractLocalizedStrings(localizedSrings, (x) => x.view),
|
|
@@ -77,7 +77,8 @@ var SubgridCommandBuilder;
|
|
|
77
77
|
},
|
|
78
78
|
hidden: [
|
|
79
79
|
(context) => !EnabledRules.HasSingleRecordSelected(context),
|
|
80
|
-
(context) => !EnabledRules.IsPhysicalSchema(context)
|
|
80
|
+
(context) => !EnabledRules.IsPhysicalSchema(context) ||
|
|
81
|
+
!EnabledRules.HasUpdatePermission(context),
|
|
81
82
|
],
|
|
82
83
|
};
|
|
83
84
|
}
|
|
@@ -94,7 +95,8 @@ var SubgridCommandBuilder;
|
|
|
94
95
|
},
|
|
95
96
|
hidden: [
|
|
96
97
|
(context) => !EnabledRules.HasSingleRecordSelected(context),
|
|
97
|
-
(context) => EnabledRules.IsPhysicalSchema(context)
|
|
98
|
+
(context) => EnabledRules.IsPhysicalSchema(context) &&
|
|
99
|
+
EnabledRules.HasUpdatePermission(context),
|
|
98
100
|
],
|
|
99
101
|
};
|
|
100
102
|
}
|
|
@@ -104,7 +106,7 @@ var SubgridCommandBuilder;
|
|
|
104
106
|
plural = singular[1];
|
|
105
107
|
singular = singular[0];
|
|
106
108
|
}
|
|
107
|
-
let msg = count === 1 ? singular : plural ?? singular;
|
|
109
|
+
let msg = count === 1 ? singular : (plural ?? singular);
|
|
108
110
|
msg = msg.replace('{count}', count.toString());
|
|
109
111
|
return msg;
|
|
110
112
|
}
|
|
@@ -24,7 +24,7 @@ function transformViewColumns(logicalName, columns, schemaStore, language) {
|
|
|
24
24
|
return {
|
|
25
25
|
...column,
|
|
26
26
|
id: `${column.name}.${column.expandedKey}`,
|
|
27
|
-
label: `${lookupLabel} (${label})`,
|
|
27
|
+
label: column.label ?? `${lookupLabel} (${label})`,
|
|
28
28
|
};
|
|
29
29
|
}
|
|
30
30
|
return {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@headless-adminapp/app",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.45",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"uuid": "11.0.3",
|
|
39
39
|
"yup": "^1.4.0"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "cd8c8da169a5d9e19d131f64847abd9f5dd9f19c"
|
|
42
42
|
}
|