@topconsultnpm/sdkui-react 6.20.0-dev4.3 → 6.20.0-dev4.4
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.
|
@@ -269,11 +269,16 @@ const TMTidViewer = ({ tmSession, tid, did, showIcon = false, color, showId = fa
|
|
|
269
269
|
return;
|
|
270
270
|
}
|
|
271
271
|
let count = DcmtTypeListCacheService.CacheCount(true, 'all', tmSession);
|
|
272
|
-
if (count <= 0)
|
|
272
|
+
if (count <= 0) {
|
|
273
273
|
TMSpinner.show({ description: `${SDKUI_Localizator.Loading} - ${SDK_Localizator.ListDcmtTypeOrView} ...` });
|
|
274
|
+
await DcmtTypeListCacheService.GetAllWithoutMetadataAsync();
|
|
275
|
+
}
|
|
274
276
|
try {
|
|
275
|
-
|
|
276
|
-
|
|
277
|
+
let resultDTD = await DcmtTypeListCacheService.GetAsync(tid);
|
|
278
|
+
if (!resultDTD) {
|
|
279
|
+
resultDTD = await DcmtTypeListCacheService.GetWithNotGrantedAsync(tid, did);
|
|
280
|
+
}
|
|
281
|
+
setDtd(resultDTD);
|
|
277
282
|
}
|
|
278
283
|
finally {
|
|
279
284
|
if (count <= 0)
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@topconsultnpm/sdkui-react",
|
|
3
|
-
"version": "6.20.0-dev4.
|
|
3
|
+
"version": "6.20.0-dev4.4",
|
|
4
4
|
"description": "",
|
|
5
5
|
"scripts": {
|
|
6
|
-
"test": "echo \"Error: no test specified\"
|
|
6
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
7
7
|
"clean": "powershell Remove-Item lib/ -recurse",
|
|
8
8
|
"copy-files": "copyfiles -u 1 src/assets/*.* src/assets/ImageLibrary/*.* src/assets/thumbnails/*.* src/assets/IconsS4t/*.* src/assets/Metadata/*.* src/css/tm-sdkui.css lib/",
|
|
9
|
-
"tm-build": "npm run clean
|
|
9
|
+
"tm-build": "npm run clean && tsc && npm run copy-files",
|
|
10
10
|
"tm-watch": "tsc -w",
|
|
11
11
|
"tm-publish": "npm publish --tag latest",
|
|
12
12
|
"tm-publish_wl": "npm publish",
|