Skip to content

Commit

Permalink
Tweak override panels
Browse files Browse the repository at this point in the history
  • Loading branch information
Sandro Stikić committed Dec 16, 2020
1 parent 9323c71 commit 1a3f4fe
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
11 changes: 8 additions & 3 deletions src/dashboard/runback/dashboard/components/commentary-panel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,10 @@
</v-card-text>

<v-card-actions>
<v-btn color="primary" text @click="close"> Close </v-btn>
<v-spacer></v-spacer>
<v-btn color="primary" text @click="clear" :disabled="!is_selected">
Clear
Reset
</v-btn>
<v-btn color="primary" text @click="close"> Cancel </v-btn>
<v-btn
Expand All @@ -107,7 +108,12 @@
<script lang="ts">
import { Vue, Component, Prop, Ref, Watch } from "vue-property-decorator"
import { Mutation, State, Action } from "vuex-class"
import { Player, Players, Commentator, Commentators } from "src/dashboard/runback/_types/"
import {
Player,
Players,
Commentator,
Commentators,
} from "src/dashboard/runback/_types/"
import type { ActionMethod } from "vuex"
import countryList from "country-list"
Expand Down Expand Up @@ -215,7 +221,6 @@ export default class CommentaryPanel extends Vue {
commentator_num: this.selected_player_num,
override: this.edited_item,
})
this.close()
}
reset_validation(): void {
Expand Down
11 changes: 8 additions & 3 deletions src/dashboard/runback/dashboard/components/scoreboard-panel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,10 @@
</v-card-text>

<v-card-actions>
<v-btn color="primary" text @click="close"> Close </v-btn>
<v-spacer></v-spacer>
<v-btn color="primary" text @click="clear" :disabled="!is_selected">
Clear
Reset
</v-btn>
<v-btn color="primary" text @click="close"> Cancel </v-btn>
<v-btn
Expand All @@ -110,7 +111,12 @@
<script lang="ts">
import { Vue, Component, Prop, Ref, Watch } from "vue-property-decorator"
import { Mutation, State, Action } from "vuex-class"
import { Player, Players, PlayerScore, Scoreboard } from "src/dashboard/runback/_types/"
import {
Player,
Players,
PlayerScore,
Scoreboard,
} from "src/dashboard/runback/_types/"
import type { ActionMethod } from "vuex"
import countryList from "country-list"
Expand Down Expand Up @@ -226,7 +232,6 @@ export default class ScoreboardPanel extends Vue {
player_num: this.selected_player_num,
override: this.edited_item,
})
this.close()
}
reset_validation(): void {
Expand Down

0 comments on commit 1a3f4fe

Please sign in to comment.