@hmcts/ccd-case-ui-toolkit 5.0.49-restricted-case-access-v2 → 5.0.50-case-file-view-restrict-document-move
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/bundles/hmcts-ccd-case-ui-toolkit.umd.js +7 -12
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.js.map +1 -1
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.min.js +1 -1
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.min.js.map +1 -1
- package/esm2015/lib/shared/components/case-viewer/services/case.resolver.js +6 -11
- package/esm2015/lib/shared/components/palette/case-file-view/case-file-view-field-read.component.js +2 -2
- package/esm2015/lib/shared/components/palette/case-file-view/components/case-file-view-folder-selector/case-file-view-folder-selector.component.js +1 -1
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js +7 -12
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js.map +1 -1
- package/lib/shared/components/case-viewer/services/case.resolver.d.ts.map +1 -1
- package/lib/shared/components/palette/case-file-view/case-file-view-field-read.component.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -12180,7 +12180,7 @@
|
|
|
12180
12180
|
__extends(CaseFileViewFieldReadComponent, _super);
|
|
12181
12181
|
function CaseFileViewFieldReadComponent() {
|
|
12182
12182
|
var _this = _super.apply(this, __spread(arguments)) || this;
|
|
12183
|
-
_this.allowMoving =
|
|
12183
|
+
_this.allowMoving = false;
|
|
12184
12184
|
return _this;
|
|
12185
12185
|
}
|
|
12186
12186
|
return CaseFileViewFieldReadComponent;
|
|
@@ -18360,7 +18360,7 @@
|
|
|
18360
18360
|
i0__namespace.ɵɵadvance(2);
|
|
18361
18361
|
i0__namespace.ɵɵproperty("ngForOf", ctx.currentCategories);
|
|
18362
18362
|
}
|
|
18363
|
-
}, directives: [i1__namespace.NgForOf, i1__namespace.NgTemplateOutlet], styles: [":host{position:relative;display:block}.folders{margin-bottom:20px}.folder{display:none;border-top:1px solid #ccc;margin:0 0 -1px}.folder
|
|
18363
|
+
}, directives: [i1__namespace.NgForOf, i1__namespace.NgTemplateOutlet], styles: [":host{position:relative;display:block}.folders{margin-bottom:20px}.folder{display:none;border-top:1px solid #ccc;margin:0 0 -1px}.folder:last-child{border-bottom:1px solid #ccc}.folders>.folder,input:checked~.folder{display:block}.iconImg{position:relative;display:inline-block;height:28px}.folder>.folder{margin-left:20px}.folder label:before{top:3px}.folder label:after{top:13px}p{font-weight:700}button{margin-right:20px}.close{float:right;width:30px;height:30px;background:url(/assets/img/x.PNG) no-repeat 50%}.cancel,.close{cursor:pointer}.cdk-overlay-pane{overflow:auto}.cdk-overlay-pane::-webkit-scrollbar{width:7px}.cdk-overlay-pane::-webkit-scrollbar-thumb{border:4px solid transparent;background-clip:padding-box;border-radius:9999px;background-color:#aaa}.cdk-overlay-pane::-webkit-scrollbar-button{display:none}.cdk-overlay-pane::-webkit-scrollbar-track-piece{background:#eee}.cdk-overlay-pane::-webkit-scrollbar-thumb{background:#ccc}"], encapsulation: 2 });
|
|
18364
18364
|
(function () {
|
|
18365
18365
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFileViewFolderSelectorComponent, [{
|
|
18366
18366
|
type: i0.Component,
|
|
@@ -29218,7 +29218,7 @@
|
|
|
29218
29218
|
}
|
|
29219
29219
|
else {
|
|
29220
29220
|
return this.caseNotifier.fetchAndRefresh(cid)
|
|
29221
|
-
.pipe(operators.catchError(function (error) { return _this.checkAuthorizationError(error
|
|
29221
|
+
.pipe(operators.catchError(function (error) { return _this.checkAuthorizationError(error); }))
|
|
29222
29222
|
.toPromise();
|
|
29223
29223
|
}
|
|
29224
29224
|
}
|
|
@@ -29231,25 +29231,20 @@
|
|
|
29231
29231
|
_this.caseNotifier.cachedCaseView = classTransformer.plainToClassFromExist(new CaseView(), caseView);
|
|
29232
29232
|
_this.caseNotifier.announceCase(_this.caseNotifier.cachedCaseView);
|
|
29233
29233
|
return _this.caseNotifier.cachedCaseView;
|
|
29234
|
-
}), operators.catchError(function (error) { return _this.checkAuthorizationError(error
|
|
29234
|
+
}), operators.catchError(function (error) { return _this.checkAuthorizationError(error); })).toPromise();
|
|
29235
29235
|
};
|
|
29236
|
-
CaseResolver.prototype.checkAuthorizationError = function (error
|
|
29237
|
-
console.error(error);
|
|
29236
|
+
CaseResolver.prototype.checkAuthorizationError = function (error) {
|
|
29238
29237
|
// TODO Should be logged to remote logging infrastructure
|
|
29239
29238
|
if (error.status === 400) {
|
|
29240
29239
|
this.router.navigate(['/search/noresults']);
|
|
29241
29240
|
return rxjs.of(null);
|
|
29242
29241
|
}
|
|
29243
|
-
|
|
29244
|
-
if (error.status === 403) {
|
|
29245
|
-
this.router.navigate(["/cases/restricted-case-access/" + caseReference]);
|
|
29246
|
-
return rxjs.of(null);
|
|
29247
|
-
}
|
|
29242
|
+
console.error(error);
|
|
29248
29243
|
if (CaseResolver.EVENT_REGEX.test(this.previousUrl) && error.status === 404) {
|
|
29249
29244
|
this.router.navigate(['/list/case']);
|
|
29250
29245
|
return rxjs.of(null);
|
|
29251
29246
|
}
|
|
29252
|
-
if (error.status !== 401) {
|
|
29247
|
+
if (error.status !== 401 && error.status !== 403) {
|
|
29253
29248
|
this.router.navigate(['/error']);
|
|
29254
29249
|
}
|
|
29255
29250
|
this.goToDefaultPage();
|