refactor: renamed AdminTile to InfoTile

This commit is contained in:
Settel 2022-09-11 20:10:52 +02:00
parent 9df82190c5
commit 82772d6292
3 changed files with 4 additions and 4 deletions

View File

@ -1,5 +1,5 @@
<template> <template>
<AdminTile title="Game"> <InfoTile title="Game">
<table class="gameinfo-tile__table"> <table class="gameinfo-tile__table">
<tr class="gameinfo-tile__row"> <tr class="gameinfo-tile__row">
<td>{{ $t('name') }}:</td> <td>{{ $t('name') }}:</td>
@ -44,7 +44,7 @@
<td colspan="3">{{ gameinfo.id }}</td> <td colspan="3">{{ gameinfo.id }}</td>
</tr> </tr>
</table> </table>
</AdminTile> </InfoTile>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">

View File

@ -1,6 +1,6 @@
<template> <template>
<div> <div>
<AdminTile title="Players" icon-bottom="add" @icon-click="addPlayer"> <InfoTile title="Players" icon-bottom="add" @icon-click="addPlayer">
<table class="players-tile__table"> <table class="players-tile__table">
<tr> <tr>
<th class="players-tile__table-head">{{ $t('name') }}:</th> <th class="players-tile__table-head">{{ $t('name') }}:</th>
@ -20,7 +20,7 @@
<td class="players-tile__cell">{{ player.lastLoggedIn === 0 ? '-' : datetime(player.lastLoggedIn) }}</td> <td class="players-tile__cell">{{ player.lastLoggedIn === 0 ? '-' : datetime(player.lastLoggedIn) }}</td>
</tr> </tr>
</table> </table>
</AdminTile> </InfoTile>
<AdminPlayerDialog v-if="showPlayerDialog" :title="playerDialogTitle" :buttons="playerDialogButtons" <AdminPlayerDialog v-if="showPlayerDialog" :title="playerDialogTitle" :buttons="playerDialogButtons"
:player="playerDialogPlayer" @close="showPlayerDialog = false" @submit="playerDialogSubmit" /> :player="playerDialogPlayer" @close="showPlayerDialog = false" @submit="playerDialogSubmit" />
</div> </div>