Skip to content

Commit

Permalink
Minor comms changes
Browse files Browse the repository at this point in the history
  • Loading branch information
slmnio committed Sep 10, 2023
1 parent 70793b3 commit 135c7f5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
13 changes: 5 additions & 8 deletions website/src/components/website/dashboard/CommsControls.vue
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
<template>
<div class="mt-2">
<b-button class="mr-1" :variant="enabledComms === 1 ? 'primary' : 'secondary'" @click="() => enableComms(1)">
<i class="fas fa-fw mr-1 fa-microphone"></i>{{ teamName(0) }} Comms
<div class="p-2">
<b-button class="mr-1" v-for="(team, i) in teams" :key="team.id" :variant="enabledComms === i+1 ? 'primary' : 'secondary'" @click="() => enableComms(i+1)">
<i class="fas fa-fw mr-1 fa-microphone"></i>{{ team?.name || `Team ${i+1}` }} Comms
</b-button>
<b-button class="mr-1" :variant="enabledComms === 2 ? 'primary' : 'secondary'" @click="() => enableComms(2)">
<i class="fas fa-fw mr-1 fa-microphone"></i>{{ teamName(1) }} Comms
</b-button>
<b-button class="mr-1" variant="dark" @click="disableComms"><i class="fas mr-1 fa-microphone-slash"></i>Disable Comms</b-button>
<b-button class="mr-1 text-light" variant="outline-secondary" @click="disableComms"><i class="fas mr-1 fa-microphone-slash"></i>Disable Comms</b-button>
</div>
</template>

<script>
import { BButton } from "bootstrap-vue";
export default {
name: "CommsControl",
name: "CommsControls",
props: ["match"],
components: { BButton },
data: () => ({
Expand Down
10 changes: 6 additions & 4 deletions website/src/views/Dashboard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
<Bracket :scale="0.75" v-for="bracket in bracketData" :event="liveMatch.event" :bracket="bracket" :key="bracket.id"></Bracket>
</DashboardModule>
<ScheduleEditor class="broadcast-schedule-editor mb-2" :broadcast="broadcast"></ScheduleEditor>
<DashboardModule title="Twitch Controls" icon-class="fas fa-wrench" content-class="p-2" v-if="broadcast && broadcast.channel">
<DashboardModule class="mb-2" title="Twitch Controls" icon-class="fas fa-wrench" content-class="p-2" v-if="broadcast && broadcast.channel">
<template v-slot:header v-if="streamLink">{{ streamLink }}</template>
<Predictions v-if="liveMatch" :client="client"/>
<Commercials v-if="hasPermission('Full broadcast permissions')" :client="client" />
Expand All @@ -66,7 +66,9 @@
</b-button>
</div>
</DashboardModule>
<CommsControl v-if="useTeamComms" :match="liveMatch"/>
<DashboardModule class="mb-2" v-if="useTeamComms" icon-class="fas fa-microphone" title="Team Comms Listen-In">
<CommsControls :match="liveMatch"/>
</DashboardModule>
</div>
</template>

Expand All @@ -79,7 +81,7 @@ import MatchEditor from "@/components/website/dashboard/MatchEditor";
import { BButton } from "bootstrap-vue";
import { updateAutomaticTitle } from "@/utils/dashboard";
import Predictions from "@/components/website/dashboard/Predictions";
import CommsControl from "@/components/website/dashboard/CommsControls";
import CommsControls from "@/components/website/dashboard/CommsControls";
import Commercials from "@/components/website/dashboard/Commercials";
import BroadcastEditor from "@/components/website/dashboard/BroadcastEditor";
import ScheduleEditor from "@/components/website/dashboard/ScheduleEditor";
Expand All @@ -95,7 +97,7 @@ import GFXController from "@/views/GFXController.vue";
export default {
name: "Dashboard",
components: { GFXController, ThemeLogo, DeskTextEditor, DeskEditor, Bracket, PreviewProgramDisplay, BracketImplications, DashboardModule, DashboardClock, ScheduleEditor, BroadcastEditor, CommsControl, Commercials, Predictions, MatchEditor, MatchThumbnail, BroadcastSwitcher, BButton },
components: { GFXController, ThemeLogo, DeskTextEditor, DeskEditor, Bracket, PreviewProgramDisplay, BracketImplications, DashboardModule, DashboardClock, ScheduleEditor, BroadcastEditor, CommsControls, Commercials, Predictions, MatchEditor, MatchThumbnail, BroadcastSwitcher, BButton },
data: () => ({
titleProcessing: false
}),
Expand Down

0 comments on commit 135c7f5

Please sign in to comment.