Skip to content

Commit 9e06205

Browse files
authored
Updated collection link and modal in channelSetList (#5257)
* Updated collection link and modal in channelSetList
1 parent be139fb commit 9e06205

1 file changed

Lines changed: 29 additions & 23 deletions

File tree

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

Lines changed: 29 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -11,31 +11,30 @@
1111
justify-center
1212
>
1313
<VFlex>
14-
<ActionLink
14+
<KButton
1515
:text="$tr('aboutChannelSetsLink')"
16-
class="mx-2"
16+
class="link-btn"
17+
appearance="basic-link"
1718
@click="infoDialog = true"
1819
/>
19-
<MessageDialog
20-
v-model="infoDialog"
21-
:header="$tr('aboutChannelSets')"
20+
<KModal
21+
v-if="infoDialog"
22+
:cancelText="$tr('cancelButtonLabel')"
23+
:title="$tr('aboutChannelSets')"
24+
@cancel="infoDialog = false"
2225
>
23-
<p>
24-
{{ $tr('channelSetsDescriptionText') }}
25-
</p>
26-
<p>
27-
{{ $tr('channelSetsInstructionsText') }}
28-
</p>
29-
<p class="red--text">
30-
{{ $tr('channelSetsDisclaimer') }}
31-
</p>
32-
<template #buttons>
33-
<VSpacer />
34-
<VBtn @click="infoDialog = false">
35-
{{ $tr('cancelButtonLabel') }}
36-
</VBtn>
37-
</template>
38-
</MessageDialog>
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>
3938
</VFlex>
4039
<VSpacer />
4140
<VFlex class="text-xs-right">
@@ -88,14 +87,12 @@
8887
import { mapGetters, mapActions } from 'vuex';
8988
import { RouteNames } from '../../constants';
9089
import ChannelSetItem from './ChannelSetItem.vue';
91-
import MessageDialog from 'shared/views/MessageDialog';
9290
import LoadingText from 'shared/views/LoadingText';
9391
9492
export default {
9593
name: 'ChannelSetList',
9694
components: {
9795
ChannelSetItem,
98-
MessageDialog,
9996
LoadingText,
10097
},
10198
data() {
@@ -114,6 +111,11 @@
114111
{ text: this.$tr('options'), sortable: false, align: 'center', width: '100px' },
115112
];
116113
},
114+
channelSetsDisclamerStyle() {
115+
return {
116+
color: this.$themePalette.red.v_500,
117+
};
118+
},
117119
sortedChannelSets() {
118120
return sortBy(this.channelSets, s => s.name.toLowerCase()) || [];
119121
},
@@ -160,6 +162,10 @@
160162
margin: 0 auto;
161163
}
162164
165+
.link-btn {
166+
margin: 0 8px;
167+
}
168+
163169
::v-deep .v-datatable {
164170
background-color: transparent !important;
165171
}

0 commit comments

Comments
 (0)