Hide action buttons in loading table rows

parent 30dc08b8
...@@ -113,6 +113,7 @@ export default { ...@@ -113,6 +113,7 @@ export default {
<div class="table-mobile-header" role="rowheader">{{ s__('Reports|Actions') }}</div> <div class="table-mobile-header" role="rowheader">{{ s__('Reports|Actions') }}</div>
<div class="table-mobile-content action-buttons d-flex justify-content-end"> <div class="table-mobile-content action-buttons d-flex justify-content-end">
<vulnerability-action-buttons <vulnerability-action-buttons
v-if="!isLoading"
:vulnerability="vulnerability" :vulnerability="vulnerability"
:can-create-issue="canCreateIssue" :can-create-issue="canCreateIssue"
:can-dismiss-vulnerability="canDismissVulnerability" :can-dismiss-vulnerability="canDismissVulnerability"
......
---
title: Hide action buttons while security dashboard is loading
merge_request: 13576
author:
type: fixed
...@@ -33,6 +33,10 @@ describe('Security Dashboard Table Row', () => { ...@@ -33,6 +33,10 @@ describe('Security Dashboard Table Row', () => {
expect(vm.confidence).toEqual(''); expect(vm.confidence).toEqual('');
expect(vm.$el.querySelectorAll('.table-mobile-content')[2].textContent).toContain(''); expect(vm.$el.querySelectorAll('.table-mobile-content')[2].textContent).toContain('');
}); });
it('should not render action buttons', () => {
expect(vm.$el.querySelectorAll('.action-buttons button').length).toBe(0);
});
}); });
describe('when loaded', () => { describe('when loaded', () => {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment