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

10 lines
170 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) {
2021-03-08 18:12:59 +05:30
return this.keys.enabled_keys.some((key) => key.id === id);
2017-08-17 22:00:37 +05:30
}
}