decide.nolog.cz/app/controllers/poll-error.js
Jeldrik Hanschke 3a23719127
do not rely on Array prototype extensions (#692)
* Array.any() relies on prototype extensions

* remove remaining usage of array prototype extensions
2023-10-18 14:52:57 +02:00

12 lines
296 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[0].status === '404';
}
}