f0cff27e99
* setup typescript * covert to TypeScript
13 lines
340 B
TypeScript
13 lines
340 B
TypeScript
import Controller from '@ember/controller';
|
|
import sjcl from 'sjcl';
|
|
import { NotFoundError } from '../utils/api';
|
|
|
|
export default class PollErrorController extends Controller {
|
|
get decryptionFailed() {
|
|
return this.model instanceof sjcl.exception.corrupt;
|
|
}
|
|
|
|
get notFound() {
|
|
return this.model instanceof NotFoundError;
|
|
}
|
|
}
|