Merge "fix: The loading cannot be canceled"
This commit is contained in:
commit
86538f4cb8
@ -116,6 +116,7 @@ export class FlavorStore extends Base {
|
||||
async create(data, extraSpecs, accessControl) {
|
||||
const body = {};
|
||||
body[this.responseKey] = data;
|
||||
try {
|
||||
this.isSubmitting = true;
|
||||
const result = await this.client.create(body);
|
||||
const { id } = result.flavor;
|
||||
@ -135,6 +136,10 @@ export class FlavorStore extends Base {
|
||||
);
|
||||
}
|
||||
return this.submitting(this.client.extraSpecs.create(id, extraBody));
|
||||
} catch (error) {
|
||||
this.isSubmitting = false;
|
||||
return Promise.reject(error);
|
||||
}
|
||||
}
|
||||
|
||||
@action
|
||||
|
Loading…
Reference in New Issue
Block a user