File tree Expand file tree Collapse file tree 2 files changed +11
-11
lines changed
contentcuration/contentcuration/frontend Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change 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 />
Original file line number Diff line number Diff line change 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' );
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 () {
You can’t perform that action at this time.
0 commit comments