Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line numberDiff line numberDiff line change
Expand Up@@ -120,3 +120,6 @@ storybook-static/

# i18n
/contentcuration/locale/CSV_FILES/*

# pyenv
.python-version
Original file line numberDiff line numberDiff line change
Expand Up@@ -101,7 +101,7 @@
<div v-for="channel in details.edit_channels" :key="channel.id" class="mb-2">
<ActionLink
:text="channel.name"
:href="`/channels/${channel.id}`"
:href="channelUrl(channel)"
target="_blank"
/>
</div>
Expand All@@ -115,7 +115,7 @@
<div v-for="channel in details.viewonly_channels" :key="channel.id" class="mb-2">
<ActionLink
:text="channel.name"
:href="`/channels/${channel.id}`"
:href="channelUrl(channel)"
target="_blank"
/>
</div>
Expand DownExpand Up@@ -282,6 +282,9 @@
},
methods: {
...mapActions('userAdmin', ['loadUser', 'loadUserDetails']),
channelUrl(channel) {
return window.Urls.channel(channel.id);
},
updateTitleForPage() {
this.updateTabTitle(`${this.userFullName} - Users - Administration`);
},
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -231,7 +231,7 @@
</VFlex>
<a
v-else
:href="`/channels/${channel.id}/view`"
:href="channelUrl(channel)"
target="_blank"
class="notranslate primary--text"
>
Expand DownExpand Up@@ -382,6 +382,11 @@
return this.sortedTags.map(tag => tag.tag_name).join(', ');
},
},
methods: {
channelUrl(channel) {
return window.Urls.channel(channel.id);
},
},
$trs: {
/* eslint-disable kolibri/vue-no-unused-translations */
sizeHeading: 'Channel size',
Expand Down