feat: PageFront에 토너먼트 베팅장 활성시 색 변경

This commit is contained in:
2023-03-18 02:10:13 +09:00
parent 582163ab46
commit 6691aa3526
2 changed files with 11 additions and 2 deletions
+9 -2
View File
@@ -30,7 +30,7 @@
:class="`open-window commandButton btn btn-sammo-nation ${showSecret ? '' : 'disabled'}`"
> </a
>
<a href="b_tournament.php" target="_blank" class="commandButton btn btn-sammo-nation"> </a>
<a href="b_tournament.php" target="_blank" :class="['commandButton btn', isTournamentApplicationOpen?'btn-sammo-base2':'btn-sammo-nation']"> </a>
<a href="b_myKingdomInfo.php" :class="`commandButton btn btn-sammo-nation ${myLevel >= 1 ? '' : 'disabled'}`"
>세력 정보</a
>
@@ -73,7 +73,12 @@
</li>
</ul>
</div>
<a href="b_betting.php" target="_blank" class="commandButton btn btn-sammo-nation"> </a>
<a
href="b_betting.php"
target="_blank"
:class="['commandButton btn', props.isBettingActive ? 'btn-sammo-base2' : 'btn-sammo-nation']"
> </a
>
</div>
</template>
<script setup lang="ts">
@@ -84,6 +89,8 @@ const props = defineProps<{
permission: number;
myLevel: number;
nationLevel: number;
isTournamentApplicationOpen: boolean;
isBettingActive: boolean;
}>();
const { showSecret, permission, myLevel, nationLevel } = toRefs(props);