Merge "fix: fix cinder services data"
This commit is contained in:
commit
7fe6d5c46c
@ -32,10 +32,6 @@ export class CinderService extends Base {
|
||||
return t('cinder services');
|
||||
}
|
||||
|
||||
get rowKey() {
|
||||
return 'binary';
|
||||
}
|
||||
|
||||
get hasTab() {
|
||||
return true;
|
||||
}
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user