decide.nolog.cz/app/controllers/poll-error.ts

14 lines
340 B
TypeScript
Raw Normal View History

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;
}
2023-10-15 17:32:11 +02:00
get notFound() {
return this.model instanceof NotFoundError;
2023-10-15 17:32:11 +02:00
}
}