import { ActionLabelsI18n } from '../../../shared/constants/app.constants';
import { CdFormBuilder } from '../../../shared/forms/cd-form-builder';
import { CdFormGroup } from '../../../shared/forms/cd-form-group';
+import { RgwUserCapabilities } from '../models/rgw-user-capabilities';
import { RgwUserCapability } from '../models/rgw-user-capability';
@Component({
usedTypes.push(capability.type);
});
this.types = [];
- ['users', 'buckets', 'metadata', 'usage', 'zone'].forEach((type) => {
+ RgwUserCapabilities.getAll().forEach((type) => {
if (_.indexOf(usedTypes, type) === -1) {
this.types.push(type);
}