2020-01-18 10:13:50 +01:00
|
|
|
import Controller from '@ember/controller';
|
2019-04-23 17:37:42 +02:00
|
|
|
import sjcl from 'sjcl';
|
2023-10-28 19:15:06 +02:00
|
|
|
import { NotFoundError } from '../utils/api';
|
2019-04-23 17:37:42 +02:00
|
|
|
|
2020-01-18 10:13:50 +01:00
|
|
|
export default class PollErrorController extends Controller {
|
|
|
|
get decryptionFailed() {
|
2019-04-23 17:37:42 +02:00
|
|
|
return this.model instanceof sjcl.exception.corrupt;
|
2020-01-18 10:13:50 +01:00
|
|
|
}
|
|
|
|
|
2023-10-15 17:32:11 +02:00
|
|
|
get notFound() {
|
2023-10-28 19:15:06 +02:00
|
|
|
return this.model instanceof NotFoundError;
|
2023-10-15 17:32:11 +02:00
|
|
|
}
|
2020-01-18 10:13:50 +01:00
|
|
|
}
|