Skip to content

Commit a6141eb

Browse files
committed
Add temporary test for the new SidePanelModal
1 parent ba03ab9 commit a6141eb

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

contentcuration/contentcuration/frontend/channelList/views/ChannelListIndex.vue

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,23 @@
113113
</VContainer>
114114
</VContainer>
115115
</VContent>
116+
<SidePanelModal
117+
v-if="showSidePanel"
118+
alignment="right"
119+
sidePanelWidth="700px"
120+
closeButtonIconType="close"
121+
@closePanel="showSidePanel = false"
122+
>
123+
<template #header>
124+
<h1 class="title">Some header text</h1>
125+
</template>
126+
<template #default> Some content here </template>
127+
<template #bottomNavigation>
128+
<div style="display: flex; justify-content: flex-end; width: 100%">
129+
<KButton primary> Some primary action </KButton>
130+
</div>
131+
</template>
132+
</SidePanelModal>
116133
<GlobalSnackbar />
117134
<PolicyModals />
118135
</VApp>
@@ -137,6 +154,7 @@
137154
import AppBar from 'shared/views/AppBar';
138155
import OfflineText from 'shared/views/OfflineText';
139156
import PolicyModals from 'shared/views/policies/PolicyModals';
157+
import SidePanelModal from 'shared/views/SidePanelModal/index.vue';
140158
141159
const CATALOG_PAGES = [
142160
RouteNames.CATALOG_ITEMS,
@@ -162,8 +180,14 @@
162180
GlobalSnackbar,
163181
PolicyModals,
164182
OfflineText,
183+
SidePanelModal,
165184
},
166185
mixins: [constantsTranslationMixin, routerMixin],
186+
data() {
187+
return {
188+
showSidePanel: true,
189+
};
190+
},
167191
computed: {
168192
...mapState({
169193
offline: state => !state.connection.online,

0 commit comments

Comments
 (0)