RED-7418: Disable preview mode if the file is in ERROR state

This commit is contained in:
Adina Țeudan 2024-05-15 16:42:01 +03:00
parent fb34d74e14
commit 92219b4740

View File

@ -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();