RED-7418: Disable preview mode if the file is in ERROR state
This commit is contained in:
parent
fb34d74e14
commit
92219b4740
@ -23,7 +23,7 @@ export class ViewSwitchComponent {
|
||||
});
|
||||
protected readonly canSwitchToRedactedView = computed(() => {
|
||||
const file = this._state.file();
|
||||
return !file.analysisRequired && !file.excluded;
|
||||
return !file.analysisRequired && !file.excluded && !file.isError;
|
||||
});
|
||||
protected readonly canSwitchToEarmarksView = computed(() => {
|
||||
const file = this._state.file();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user