Merge "fix: fix cinder services data"

This commit is contained in:
Zuul 2022-08-26 06:10:28 +00:00 committed by Gerrit Code Review
commit 7fe6d5c46c
2 changed files with 8 additions and 4 deletions

View File

@ -32,10 +32,6 @@ export class CinderService extends Base {
return t('cinder services');
}
get rowKey() {
return 'binary';
}
get hasTab() {
return true;
}

View File

@ -30,6 +30,14 @@ export class ServiceStore extends Base {
disable(body) {
return this.submitting(this.client.reason(body));
}
listDidFetch(items) {
if (!items.length) return items;
return items.map((it, index) => ({
...it,
id: index,
}));
}
}
const globalServiceStore = new ServiceStore();