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

13 lines
296 B
JavaScript
Raw Normal View History

import Controller from '@ember/controller';
import sjcl from 'sjcl';
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.errors[0].status === '404';
2023-10-15 17:32:11 +02:00
}
}