Show maps button if there is a single map but multiple servers

This commit is contained in:
James Lyne 2021-07-27 02:36:24 +01:00
parent d37657d3e2
commit 42f8cbd74b

View File

@ -17,8 +17,9 @@
<template> <template>
<section class="sidebar" role="none" ref="sidebar"> <section class="sidebar" role="none" ref="sidebar">
<header class="sidebar__buttons"> <header class="sidebar__buttons">
<button v-if="mapCount > 1" :class="{'button--maps': true}" @click="toggleMaps" :title="messageWorlds" <button v-if="mapCount > 1 || serverCount > 1" :class="{'button--maps': true}" @click="toggleMaps"
:aria-label="messageWorlds" :aria-expanded="mapsVisible" @keydown="handleMapsKeydown"> :title="messageWorlds" :aria-label="messageWorlds" :aria-expanded="mapsVisible"
@keydown="handleMapsKeydown">
<SvgIcon name="maps"></SvgIcon> <SvgIcon name="maps"></SvgIcon>
</button> </button>
<button v-if="playerMakersEnabled" :class="{'button--players': true}" @click="togglePlayers" <button v-if="playerMakersEnabled" :class="{'button--players': true}" @click="togglePlayers"