Commit bb9ec8b4 authored by Mike Greiling's avatar Mike Greiling

Merge branch 'loading-row-hide-actions' into 'master'

Hide action buttons in loading table rows

See merge request gitlab-org/gitlab-ee!13576
parents ff1e5a81 37d27b3b
......@@ -113,6 +113,7 @@ export default {
<div class="table-mobile-header" role="rowheader">{{ s__('Reports|Actions') }}</div>
<div class="table-mobile-content action-buttons d-flex justify-content-end">
<vulnerability-action-buttons
v-if="!isLoading"
:vulnerability="vulnerability"
:can-create-issue="canCreateIssue"
: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', () => {
expect(vm.confidence).toEqual('');
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', () => {
......
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