debian-mirror-gitlab/app/assets/javascripts/deploy_keys/store/index.js

10 lines
168 B
JavaScript
Raw Normal View History

2017-08-17 22:00:37 +05:30
export default class DeployKeysStore {
constructor() {
this.keys = {};
}
2018-10-15 14:42:47 +05:30
isEnabled(id) {
return this.keys.enabled_keys.some(key => key.id === id);
2017-08-17 22:00:37 +05:30
}
}