Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -33,50 +33,45 @@
wrap
class="list-wrapper"
>
<!-- Results bar -->
<VFlex
xs12
class="mb-2"
<h1 class="mb-2 ml-1 title">
{{ $tr('resultsText', { count: page.count }) }}
</h1>
<KButton
v-if="page.count && !selecting"
:text="$tr('selectChannels')"
data-testid="select"
appearance="basic-link"
@click="setSelection(true)"
/>
<Checkbox
v-else-if="selecting"
v-model="selectAll"
class="mb-4 mx-2"
:label="$tr('selectAll')"
data-testid="select-all"
:indeterminate="selected.length > 0 && selected.length < channels.length"
/>
</VFlex>
<VFlex xs12>
<VLayout
v-for="item in channels"
:key="item.id"
align-center
>
<h1 class="mb-2 ml-1 title">
{{ $tr('resultsText', { count: page.count }) }}
</h1>
<KButton
v-if="page.count && !selecting"
:text="$tr('selectChannels')"
data-test="select"
appearance="basic-link"
@click="setSelection(true)"
/>
<Checkbox
v-else-if="selecting"
v-model="selectAll"
class="mb-4 mx-2"
:label="$tr('selectAll')"
data-test="select-all"
:indeterminate="selected.length > 0 && selected.length < channels.length"
v-show="selecting"
v-model="selected"
class="mx-2"
:value="item.id"
data-testid="checkbox"
/>
</VFlex>
<VFlex xs12>
<VLayout
v-for="item in channels"
:key="item.id"
align-center
>
<Checkbox
v-show="selecting"
v-model="selected"
class="mx-2"
:value="item.id"
data-test="checkbox"
/>
<ChannelItem
:channelId="item.id"
:detailsRouteName="detailsRouteName"
style="flex-grow: 1; width: 100%"
/>
</VLayout>
</VFlex>
<ChannelItem
:channelId="item.id"
:detailsRouteName="detailsRouteName"
style="flex-grow: 1; width: 100%"
/>
</VLayout>
</VFlex>
<VFlex
xs12
style="padding-bottom: 72px"
Expand All @@ -91,37 +86,37 @@
</VLayout>
<BottomBar
v-if="selecting"
data-test="toolbar"
:appearanceOverrides="{ height: windowIsSmall ? '72px' : '56px' }"
data-testid="toolbar"
:appearanceOverrides="{ height: $vuetify.breakpoint.xsOnly ? '72px' : '56px' }"
>
<div class="mx-2">
{{ $tr('channelSelectionCount', { count: selectedCount }) }}
</div>
<VSpacer />
<div>
<KButton
:text="$tr('cancelButton')"
data-test="cancel"
appearance="flat-button"
@click="setSelection(false)"
/>
</div>
<div class="mx-2">
{{ $tr('channelSelectionCount', { count: selectedCount }) }}
</div>
<VSpacer />
<div>
<KButton
:text="$tr('downloadButton')"
:text="$tr('cancelButton')"
data-testid="cancel"
appearance="flat-button"
@click="setSelection(false)"
/>
</div>
<KButton
:text="$tr('downloadButton')"
:primary="true"
data-testid="download-button"
iconAfter="dropup"
>
<KDropdownMenu
:primary="true"
data-test="download-button"
iconAfter="dropup"
>
<KDropdownMenu
:primary="true"
:options="[
{ label: $tr('downloadPDF'), value: 'pdf' },
{ label: $tr('downloadCSV'), value: 'csv' },
]"
appearance="raised-button"
@select="option => selectDownloadOption(option)"
/>
</KButton>
:options="[
{ label: $tr('downloadPDF'), value: 'pdf' },
{ label: $tr('downloadCSV'), value: 'csv' },
]"
appearance="raised-button"
@select="option => selectDownloadOption(option)"
/>
</KButton>
</BottomBar>
</VContainer>
</div>
Expand Down
Loading
Loading