Skip to content

Commit

Permalink
Don't show music track in omnibar if not playing
Browse files Browse the repository at this point in the history
  • Loading branch information
zoton2 committed Feb 17, 2024
1 parent 889325d commit 209ba35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/graphics/omnibar/components/Ticker/MusicTrack.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
<script lang="ts">
import { replicantNS } from '@esa-layouts/browser_shared/replicant_store';
import { wait } from '@esa-layouts/graphics/_misc/helpers';
import { Vue, Component, Prop } from 'vue-property-decorator';
import { MusicData } from '@esa-layouts/types/schemas';
import { Component, Prop, Vue } from 'vue-property-decorator';
@Component({
name: 'MusicTrack',
Expand All @@ -36,7 +36,7 @@ export default class extends Vue {
async created(): Promise<void> {
// Skip display if no track is playing
if (!this.trackInformation) {
if (!this.trackInformation || !this.musicData.playing) {
this.$emit('end');
return;
}
Expand Down

0 comments on commit 209ba35

Please sign in to comment.