diff --git a/src/components/TabsMenuElements/ServersView/Components/ServerFullInfo.vue b/src/components/TabsMenuElements/ServersView/Components/ServerFullInfo.vue index bffc4e7..7ae0f25 100644 --- a/src/components/TabsMenuElements/ServersView/Components/ServerFullInfo.vue +++ b/src/components/TabsMenuElements/ServersView/Components/ServerFullInfo.vue @@ -43,7 +43,7 @@ {{ item.name }} {{ item.score }} - {{ item.duration }} + {{ item.duration }} @@ -68,12 +68,13 @@ export default { data: () => ({ showServerDialog: false, expandPlayers: false, - players: [{score:0, name:"", duration:""}], + players: [{score:0, name:"", duration:"", sec:0}], selected_player: null }), methods: { openFIF() { this.players = this.serverData['players']; + this.players.forEach(p => p.sec = p.duration.split(':').reduce((acc,time) => (60 * acc) + +time)); this.showServerDialog = true; }, closeFIF() {