decide.nolog.cz/app/controllers/poll-error.js
2023-10-15 17:32:11 +02:00

12 lines
305 B
JavaScript

import Controller from '@ember/controller';
import sjcl from 'sjcl';
export default class PollErrorController extends Controller {
get decryptionFailed() {
return this.model instanceof sjcl.exception.corrupt;
}
get notFound() {
return this.model.errors.firstObject.status === '404';
}
}