Skip to content

Commit 872724b

Browse files
fix: added UI improvements to collections pages link.
1 parent fd33d5b commit 872724b

File tree

1 file changed

+78
-49
lines changed

1 file changed

+78
-49
lines changed

contentcuration/contentcuration/frontend/channelList/views/ChannelSet/ChannelSetList.vue

Lines changed: 78 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -4,50 +4,34 @@
44
class="list-items"
55
fluid
66
>
7-
<VLayout
8-
row
9-
wrap
10-
align-end
11-
justify-center
12-
>
13-
<VFlex>
14-
<KButton
15-
:text="$tr('aboutChannelSetsLink')"
16-
class="link-btn"
17-
appearance="basic-link"
18-
@click="infoDialog = true"
19-
/>
20-
<KModal
21-
v-if="infoDialog"
22-
:cancelText="$tr('cancelButtonLabel')"
23-
:title="$tr('aboutChannelSets')"
24-
@cancel="infoDialog = false"
25-
>
26-
<div>
27-
<p>
28-
{{ $tr('channelSetsDescriptionText') }}
29-
</p>
30-
<p>
31-
{{ $tr('channelSetsInstructionsText') }}
32-
</p>
33-
<p :class="$computedClass(channelSetsDisclamerStyle)">
34-
{{ $tr('channelSetsDisclaimer') }}
35-
</p>
36-
</div>
37-
</KModal>
38-
</VFlex>
39-
<VSpacer />
40-
<VFlex class="text-xs-right">
41-
<KButton
42-
v-if="!loading"
43-
appearance="raised-button"
44-
primary
45-
data-test="add-channelset"
46-
:text="$tr('addChannelSetTitle')"
47-
@click="newChannelSet"
48-
/>
49-
</VFlex>
50-
</VLayout>
7+
<VLayout
8+
row
9+
wrap
10+
align-center
11+
justify-space-between
12+
class="pb-2"
13+
>
14+
<VFlex class="text-xs-left">
15+
<KButton
16+
v-if="!loading && channelSets && channelSets.length"
17+
:text="$tr('aboutChannelSetsLink')"
18+
class="link-btn"
19+
appearance="basic-link"
20+
@click="infoDialog = true"
21+
/>
22+
</VFlex>
23+
<VFlex class="text-xs-right" shrink="0">
24+
<KButton
25+
v-if="!loading"
26+
appearance="raised-button"
27+
primary
28+
data-test="add-channelset"
29+
:text="$tr('addChannelSetTitle')"
30+
@click="newChannelSet"
31+
/>
32+
</VFlex>
33+
</VLayout>
34+
5135
<VLayout
5236
row
5337
justify-center
@@ -57,13 +41,58 @@
5741
<template v-if="loading">
5842
<LoadingText />
5943
</template>
60-
<p
44+
<template
6145
v-else-if="channelSets && !channelSets.length"
62-
class="mb-0 text-xs-center"
6346
>
64-
{{ $tr('noChannelSetsFound') }}
65-
</p>
47+
<div class="text-xs-center mt-4 p-2">
48+
<p class="mb-0">
49+
{{ $tr('noChannelSetsFound') }}
50+
</p>
51+
<KButton
52+
:text="$tr('aboutChannelSetsLink')"
53+
class="link-btn"
54+
appearance="basic-link"
55+
@click="infoDialog = true"
56+
/>
57+
<KModal
58+
v-if="infoDialog"
59+
:cancelText="$tr('cancelButtonLabel')"
60+
:title="$tr('aboutChannelSets')"
61+
@cancel="infoDialog = false"
62+
>
63+
<div>
64+
<p>
65+
{{ $tr('channelSetsDescriptionText') }}
66+
</p>
67+
<p>
68+
{{ $tr('channelSetsInstructionsText') }}
69+
</p>
70+
<p :class="$computedClass(channelSetsDisclamerStyle)">
71+
{{ $tr('channelSetsDisclaimer') }}
72+
</p>
73+
</div>
74+
</KModal>
75+
</div>
76+
</template>
6677
<template v-else>
78+
<KModal
79+
v-if="infoDialog"
80+
:cancelText="$tr('cancelButtonLabel')"
81+
:title="$tr('aboutChannelSets')"
82+
@cancel="infoDialog = false"
83+
>
84+
<div>
85+
<p>
86+
{{ $tr('channelSetsDescriptionText') }}
87+
</p>
88+
<p>
89+
{{ $tr('channelSetsInstructionsText') }}
90+
</p>
91+
<p :class="$computedClass(channelSetsDisclamerStyle)">
92+
{{ $tr('channelSetsDisclaimer') }}
93+
</p>
94+
</div>
95+
</KModal>
6796
<VDataTable
6897
:headers="headers"
6998
:items="sortedChannelSets"
@@ -139,7 +168,7 @@
139168
'You can package together multiple channels to create a collection. The entire collection can then be imported to Kolibri at once by using a collection token.',
140169
addChannelSetTitle: 'New collection',
141170
aboutChannelSets: 'About collections',
142-
aboutChannelSetsLink: 'Learn about collections',
171+
aboutChannelSetsLink: 'Learn more about collections',
143172
channelSetsDescriptionText:
144173
'A collection contains multiple Kolibri Studio channels that can be imported at one time to Kolibri with a single collection token.',
145174
channelSetsInstructionsText:

0 commit comments

Comments
 (0)