Skip to content

Commit 3959ffc

Browse files
Adding Suggested Changes
Signed-off-by: Abhishek-Punhani <[email protected]>
1 parent 3e3492f commit 3959ffc

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

contentcuration/contentcuration/frontend/accounts/pages/AccountsMain.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
<VDivider />
7878
<p class="mt-4 text-xs-center">
7979
<KButton
80-
href="/channels/#/public"
80+
href="/channels/#public"
8181
:text="$tr('guestModeLink')"
8282
appearance="basic-link"
8383
/>

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -235,12 +235,10 @@
235235
},
236236
watch: {
237237
$route(route) {
238-
if (!this.loggedIn && route.name === RouteNames.CHANNELS_EDITABLE) {
239-
this.$router.replace({ name: RouteNames.CATALOG_ITEMS });
240-
return;
241-
}
242-
if (this.loggedIn && route.name === RouteNames.CHANNELS_EDITABLE) {
243-
this.loadInvitationList();
238+
if (route.name === RouteNames.CHANNELS_EDITABLE) {
239+
this.loggedIn
240+
? this.loadInvitationList()
241+
: this.$router.replace({ name: RouteNames.CATALOG_ITEMS });
244242
}
245243
if (this.fullPageError) {
246244
this.$store.dispatch('errors/clearError');
@@ -254,10 +252,12 @@
254252
created() {
255253
if (this.loggedIn) {
256254
this.loadInvitationList();
257-
} else if (!CATALOG_PAGES.includes(this.$route.name)) {
258-
this.$router.push({
259-
name: RouteNames.CATALOG_ITEMS,
260-
});
255+
} else {
256+
if (this.$route.name === RouteNames.CHANNELS_EDITABLE) {
257+
this.$router.replace({ name: RouteNames.CATALOG_ITEMS });
258+
} else if (!CATALOG_PAGES.includes(this.$route.name)) {
259+
this.$router.push({ name: RouteNames.CATALOG_ITEMS });
260+
}
261261
}
262262
},
263263
mounted() {

0 commit comments

Comments
 (0)