Skip to content

Commit fae142f

Browse files
authored
[Remove Vuetify from Studio] Channel not found error page
1 parent 72db464 commit fae142f

File tree

3 files changed

+12
-55
lines changed

3 files changed

+12
-55
lines changed

contentcuration/contentcuration/frontend/channelEdit/views/ChannelEditAppError.vue

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,7 @@
1313
<!-- Full Page Errors -->
1414
<VContent class="pa-0">
1515
<ChannelNotFoundError
16-
v-if="showNotFoundError"
17-
:backHomeLink="myChannelsUrl"
18-
/>
19-
20-
<ChannelDeletedError
21-
v-else-if="showDeletedError"
16+
v-if="showNotFoundError || showDeletedError"
2217
:backHomeLink="myChannelsUrl"
2318
/>
2419

@@ -39,15 +34,13 @@
3934
import MainNavigationDrawer from 'shared/views/MainNavigationDrawer';
4035
import ToolBar from 'shared/views/ToolBar';
4136
import ChannelNotFoundError from 'shared/views/errors/ChannelNotFoundError';
42-
import ChannelDeletedError from 'shared/views/errors/ChannelDeletedError';
4337
import GenericError from 'shared/views/errors/GenericError';
4438
4539
// NOTE: 404 Error Page for the topic level is contained inside of TreeViewBase
4640
export default {
4741
name: 'ChannelEditAppError',
4842
components: {
4943
ChannelNotFoundError,
50-
ChannelDeletedError,
5144
GenericError,
5245
MainNavigationDrawer,
5346
ToolBar,

contentcuration/contentcuration/frontend/shared/views/errors/ChannelDeletedError.vue

Lines changed: 0 additions & 46 deletions
This file was deleted.

contentcuration/contentcuration/frontend/shared/views/errors/ChannelNotFoundError.vue

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,23 @@
99
</template>
1010
<template #actions>
1111
<KRouterLink
12-
v-bind="backHomeLink"
12+
v-if="backHomeLink.to"
13+
:to="backHomeLink.to"
1314
appearance="raised-button"
1415
:primary="true"
1516
style="margin-top: 1rem"
1617
>
1718
{{ $tr('backToHomeAction') }}
1819
</KRouterLink>
20+
<KExternalLink
21+
v-else
22+
:href="backHomeLink.href"
23+
appearance="raised-button"
24+
:primary="true"
25+
style="margin-top: 1rem"
26+
>
27+
{{ $tr('backToHomeAction') }}
28+
</KExternalLink>
1929
</template>
2030
</StudioAppError>
2131

0 commit comments

Comments
 (0)