File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed
contentcuration/contentcuration/frontend/channelList/views/Channel Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change 8
8
:class =" { added }"
9
9
data-test =" channel-card"
10
10
tabindex =" 0"
11
+ :href =" isInChannelList && linkToChannelTree ? channelHref : null"
12
+ :to =" isInChannelList ? (linkToChannelTree ? null : channelDetailsLink) : null"
11
13
@click =" handleChannelClick"
12
14
>
13
15
<VLayout row wrap >
381
383
},
382
384
];
383
385
},
386
+ linkToChannelTree () {
387
+ return this .loggedIn && ! this .libraryMode ;
388
+ },
389
+ channelHref () {
390
+ if (this .linkToChannelTree ) {
391
+ return window .Urls .channel (this .channelId );
392
+ } else {
393
+ return false ;
394
+ }
395
+ },
384
396
},
385
397
mounted () {
386
398
if (this .channel .added ) {
401
413
});
402
414
},
403
415
handleChannelClick () {
404
- this .$emit (' show-channel-details' , this .channelId );
416
+ if (! this .isInChannelList ) {
417
+ this .$emit (' show-channel-details' , this .channelId );
418
+ }
405
419
},
406
420
trackTokenCopy () {
407
421
this .$analytics .trackAction (' channel_list' , ' Copy token' , {
You can’t perform that action at this time.
0 commit comments