Skip to content

Commit

Permalink
Bulk results modal: add dummy print button, tweak DataTable CSS
Browse files Browse the repository at this point in the history
CSS: adjust margins when there are many emails; do not wrap long emails/results
  • Loading branch information
norrisng-bc committed Jun 22, 2024
1 parent f27cb89 commit 3b65d73
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion frontend/src/components/common/BulkPermissionResults.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ const exportCSV = () => {
:modal="true"
>
<DataTable
:id="'results-table'"
ref="batchResults"
:export-filename="`${resourceType === 'object' ? resource.name.replace(/\.[^/.]+$/, '') : resource.bucketName}_bulk_results`"

Check warning on line 35 in frontend/src/components/common/BulkPermissionResults.vue

View workflow job for this annotation

GitHub Actions / Unit Tests (Frontend) (16.x)

This line has a length of 131. Maximum allowed is 120

Check warning on line 35 in frontend/src/components/common/BulkPermissionResults.vue

View workflow job for this annotation

GitHub Actions / Unit Tests (Frontend) (18.x)

This line has a length of 131. Maximum allowed is 120

Check warning on line 35 in frontend/src/components/common/BulkPermissionResults.vue

View workflow job for this annotation

GitHub Actions / Unit Tests (Frontend) (20.x)

This line has a length of 131. Maximum allowed is 120
:value="props.results"
Expand All @@ -44,6 +45,13 @@ const exportCSV = () => {
>
<font-awesome-icon icon="fas fa-download" />
</Button>
<Button
v-tooltip.bottom="'Print results'"
aria-label="Print results"
class="p-button p-button-text"
>
<font-awesome-icon icon="fas fa-print" />
</Button>
</div>
<Column
field="email"
Expand All @@ -54,7 +62,7 @@ const exportCSV = () => {
header="Result"
>
<template #body="{ data }">
<span>
<span class="mr-3">
<span class="m-1">
<font-awesome-icon
v-if="data.status === 1"
Expand Down Expand Up @@ -90,4 +98,9 @@ const exportCSV = () => {
.icon-noaction {
color: $bcbox-noaction;
}
#results-table {
text-wrap: nowrap;
min-width: 35em;
}
</style>

0 comments on commit 3b65d73

Please sign in to comment.