Skip to content

Commit

Permalink
Bulk results modal: tweak DataTable CSS
Browse files Browse the repository at this point in the history
Adjust margins when there are many emails; do not wrap long emails/result strings
  • Loading branch information
norrisng-bc committed Jun 26, 2024
1 parent f27cb89 commit 08fb952
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
2 changes: 0 additions & 2 deletions frontend/src/components/common/BulkPermission.vue
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,4 @@ const onSubmit = handleSubmit(async (values: any, { resetForm }) => {
:resource="resource"
:resource-type="resourceType"
/>

<pre v-if="complete">{{ results }}</pre>
</template>
15 changes: 13 additions & 2 deletions frontend/src/components/common/BulkPermissionResults.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ const props = withDefaults(defineProps<Props>(), {
const modelValue = defineModel<boolean>({ default: false });
const exportFileName =
props.resourceType === 'object'
? props.resource.name.replace(/\.[^/.]+$/, '')
: `${props.resource.bucketName}_bulk_results`;
// Exports DataTable results
const batchResults = ref();
Expand All @@ -30,8 +35,9 @@ const exportCSV = () => {
:modal="true"
>
<DataTable
:id="'results-table'"
ref="batchResults"
:export-filename="`${resourceType === 'object' ? resource.name.replace(/\.[^/.]+$/, '') : resource.bucketName}_bulk_results`"
:export-filename="exportFileName"
:value="props.results"
class="p-datatable-striped"
>
Expand All @@ -54,7 +60,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 +96,9 @@ const exportCSV = () => {
.icon-noaction {
color: $bcbox-noaction;
}
#results-table {
text-wrap: nowrap;
min-width: 35em;
}
</style>

0 comments on commit 08fb952

Please sign in to comment.