|
@@ -233,6 +233,14 @@
|
|
<span v-else class="songTitle"
|
|
<span v-else class="songTitle"
|
|
>No Songs Playing</span
|
|
>No Songs Playing</span
|
|
>
|
|
>
|
|
|
|
+ <i
|
|
|
|
+ v-if="canRequest(element)"
|
|
|
|
+ class="material-icons"
|
|
|
|
+ content="You can request songs in this station"
|
|
|
|
+ v-tippy="{ theme: 'info' }"
|
|
|
|
+ >
|
|
|
|
+ queue
|
|
|
|
+ </i>
|
|
</div>
|
|
</div>
|
|
</router-link>
|
|
</router-link>
|
|
</template>
|
|
</template>
|
|
@@ -447,6 +455,14 @@
|
|
}}</span
|
|
}}</span
|
|
>
|
|
>
|
|
<span v-else class="songTitle">No Songs Playing</span>
|
|
<span v-else class="songTitle">No Songs Playing</span>
|
|
|
|
+ <i
|
|
|
|
+ v-if="canRequest(station)"
|
|
|
|
+ class="material-icons"
|
|
|
|
+ content="You can request songs in this station"
|
|
|
|
+ v-tippy="{ theme: 'info' }"
|
|
|
|
+ >
|
|
|
|
+ queue
|
|
|
|
+ </i>
|
|
</div>
|
|
</div>
|
|
</router-link>
|
|
</router-link>
|
|
<h4 v-if="stations.length === 0">
|
|
<h4 v-if="stations.length === 0">
|
|
@@ -755,6 +771,17 @@ export default {
|
|
isOwnerOrAdmin(station) {
|
|
isOwnerOrAdmin(station) {
|
|
return this.isOwner(station) || this.isAdmin();
|
|
return this.isOwner(station) || this.isAdmin();
|
|
},
|
|
},
|
|
|
|
+ canRequest(station) {
|
|
|
|
+ return (
|
|
|
|
+ station &&
|
|
|
|
+ this.loggedIn &&
|
|
|
|
+ station.requests &&
|
|
|
|
+ station.requests.enabled &&
|
|
|
|
+ (station.requests.access === "user" ||
|
|
|
|
+ (station.requests.access === "owner" &&
|
|
|
|
+ this.isOwnerOrAdmin(station)))
|
|
|
|
+ );
|
|
|
|
+ },
|
|
isPlaying(station) {
|
|
isPlaying(station) {
|
|
return typeof station.currentSong.title !== "undefined";
|
|
return typeof station.currentSong.title !== "undefined";
|
|
},
|
|
},
|