From 110e7a0bb4586521c45d314cf9158bee4a56dc86 Mon Sep 17 00:00:00 2001 From: Solomon Cammack Date: Thu, 9 Mar 2023 16:32:50 +0000 Subject: [PATCH] Update dashboard to work better at smaller widths and general fixes --- .../website/bracket/BracketResolveButton.vue | 5 +- .../website/dashboard/BracketImplications.vue | 2 +- .../website/dashboard/BroadcastEditor.vue | 95 ++++++------ .../website/dashboard/DashboardClock.vue | 3 +- .../website/dashboard/MatchEditor.vue | 137 +++++++++++------- .../dashboard/PreviewProgramDisplay.vue | 2 +- .../website/dashboard/ScheduleEditor.vue | 2 +- website/src/views/Dashboard.vue | 42 ++++-- 8 files changed, 177 insertions(+), 111 deletions(-) diff --git a/website/src/components/website/bracket/BracketResolveButton.vue b/website/src/components/website/bracket/BracketResolveButton.vue index 730ee530..c5d53b93 100644 --- a/website/src/components/website/bracket/BracketResolveButton.vue +++ b/website/src/components/website/bracket/BracketResolveButton.vue @@ -16,7 +16,8 @@ export default { name: "BracketResolveButton", props: { bracket: Object, - verticalButton: Boolean + verticalButton: Boolean, + showButton: Boolean }, components: { BButton }, data: () => ({ @@ -25,7 +26,7 @@ export default { computed: { showResolveButton() { if (!isAuthenticated(this.$root)) return false; - return this.$root.auth?.user?.website_settings?.includes("Can edit any match"); + return this.showButton || this.$root.auth?.user?.website_settings?.includes("Can edit any match"); } }, methods: { diff --git a/website/src/components/website/dashboard/BracketImplications.vue b/website/src/components/website/dashboard/BracketImplications.vue index 41ec8b9a..a63801cf 100644 --- a/website/src/components/website/dashboard/BracketImplications.vue +++ b/website/src/components/website/dashboard/BracketImplications.vue @@ -7,7 +7,7 @@
- +
diff --git a/website/src/components/website/dashboard/BroadcastEditor.vue b/website/src/components/website/dashboard/BroadcastEditor.vue index ba7bdd71..58393d36 100644 --- a/website/src/components/website/dashboard/BroadcastEditor.vue +++ b/website/src/components/website/dashboard/BroadcastEditor.vue @@ -1,53 +1,59 @@