Merge pull request #10169 from jakemcdermott/fix-10127

Always resolve launching status

SUMMARY
Resolves #10127
Always resolve the launching status after any intermediate async activity that needs to occur while loading prompts, etc.

Reviewed-by: Kersom <None>
Reviewed-by: Tiago Góes <tiago.goes2009@gmail.com>
This commit is contained in:
softwarefactory-project-zuul[bot] 2021-05-12 21:31:35 +00:00 committed by GitHub
commit 01fdc482be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -78,6 +78,8 @@ function LaunchButton({ resource, children, history }) {
}
} catch (err) {
setError(err);
} finally {
setIsLaunching(false);
}
};

View File

@ -155,8 +155,7 @@ describe('LaunchButton', () => {
const button = wrapper.find('button');
await act(() => button.prop('onClick')());
wrapper.update();
expect(wrapper.find('button').prop('disabled')).toEqual(true);
expect(wrapper.find('button').prop('disabled')).toEqual(false);
});
test('should relaunch job correctly', async () => {