Merge branch 'RED-7418' into 'master'

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

Closes RED-7418

See merge request redactmanager/red-ui!417
This commit is contained in:
Valentin-Gabriel Mihai 2024-05-15 16:44:25 +02:00
commit e95b6a3824

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