debian-mirror-gitlab/app/assets/javascripts/deploy_keys/store/index.js
2021-03-08 18:12:59 +05:30

9 lines
170 B
JavaScript

export default class DeployKeysStore {
constructor() {
this.keys = {};
}
isEnabled(id) {
return this.keys.enabled_keys.some((key) => key.id === id);
}
}