debian-mirror-gitlab/app/assets/javascripts/deploy_keys/store/index.js
2017-08-17 22:00:37 +05:30

9 lines
173 B
JavaScript

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