Skip to content

Commit

Permalink
warning when localplayer is unknown
Browse files Browse the repository at this point in the history
  • Loading branch information
Herysia committed May 18, 2023
1 parent 39ad470 commit c2f6f87
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions src/components/DamageMeter/DamageMeterTable.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,30 @@
<template>
<div class="damage-meter-table-wrapper" :style="wrapperStyle">
<div
class="damage-meter-warning row"
v-if="
!hideMeterWarning &&
sessionState.damageStatistics.totalDamageDealt > 0 &&
(sessionState.localPlayer === '' || sessionState.localPlayer === 'You')
"
>
<span class="col"
>Warning: Data may be invalid, please start the meter before entering
your raid</span
>
<q-btn
icon="close"
size="0.6em"
flat
dense
round
@click="
() => {
hideMeterWarning = true;
}
"
></q-btn>
</div>
<table class="damage-meter-table">
<thead>
<q-menu touch-position context-menu>
Expand Down Expand Up @@ -754,6 +779,7 @@ import {
} from "../../util/helpers";
const settingsStore = useSettingsStore();
let hideMeterWarning = false;
// TODO: move these to a pinia store
const props = defineProps({
Expand Down Expand Up @@ -1404,6 +1430,13 @@ const sortedEffectiveShieldingBuffs: ComputedRef<
overflow: hidden;
text-overflow: ellipsis;
}
.damage-meter-warning {
font-family: "Segoe UI", "Segoe UI", "sans-serif";
text-align: center;
width: 100%;
background-color: #fa5b55;
font-size: 11px;
}
.damage-meter-table-wrapper {
overflow-y: scroll;
}
Expand Down

0 comments on commit c2f6f87

Please sign in to comment.