|
4 | 4 | class="list-items" |
5 | 5 | fluid |
6 | 6 | > |
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 | + |
51 | 35 | <VLayout |
52 | 36 | row |
53 | 37 | justify-center |
|
57 | 41 | <template v-if="loading"> |
58 | 42 | <LoadingText /> |
59 | 43 | </template> |
60 | | - <p |
| 44 | + <template |
61 | 45 | v-else-if="channelSets && !channelSets.length" |
62 | | - class="mb-0 text-xs-center" |
63 | 46 | > |
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> |
66 | 77 | <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> |
67 | 96 | <VDataTable |
68 | 97 | :headers="headers" |
69 | 98 | :items="sortedChannelSets" |
|
139 | 168 | '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.', |
140 | 169 | addChannelSetTitle: 'New collection', |
141 | 170 | aboutChannelSets: 'About collections', |
142 | | - aboutChannelSetsLink: 'Learn about collections', |
| 171 | + aboutChannelSetsLink: 'Learn more about collections', |
143 | 172 | channelSetsDescriptionText: |
144 | 173 | 'A collection contains multiple Kolibri Studio channels that can be imported at one time to Kolibri with a single collection token.', |
145 | 174 | channelSetsInstructionsText: |
|
0 commit comments