gitlab-org--gitlab-foss/app/assets/javascripts/deploy_keys/store/index.js
2018-05-07 18:21:34 +00:00

9 lines
168 B
JavaScript

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