diff --git a/platypush/backend/http/webapp/src/components/panels/Media/Index.vue b/platypush/backend/http/webapp/src/components/panels/Media/Index.vue index 1505d9784d..cf47c32c16 100644 --- a/platypush/backend/http/webapp/src/components/panels/Media/Index.vue +++ b/platypush/backend/http/webapp/src/components/panels/Media/Index.vue @@ -8,8 +8,10 @@ @seek="seek" @search="search" @mute="toggleMute" @unmute="toggleMute">
diff --git a/platypush/backend/http/webapp/src/components/panels/Media/Nav.vue b/platypush/backend/http/webapp/src/components/panels/Media/Nav.vue index 93e370a405..cb912c68f4 100644 --- a/platypush/backend/http/webapp/src/components/panels/Media/Nav.vue +++ b/platypush/backend/http/webapp/src/components/panels/Media/Nav.vue @@ -4,7 +4,7 @@ -
  • @@ -24,6 +24,10 @@ export default { default: false, }, + torrentPlugin: { + type: String, + }, + views: { type: Object, default: () => { @@ -46,6 +50,16 @@ export default { } }, }, + + computed: { + displayedViews() { + const views = {...this.views} + if (!this.torrentPlugin?.length) + delete views.torrents + + return views + }, + }, }