debian-mirror-gitlab/app/assets/javascripts/deploy_keys/store/index.js
2018-10-15 14:42:47 +05:30

9 lines
168 B
JavaScript

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