From e3f64e720caaef44d6cf2fff8351e289661e3d3a Mon Sep 17 00:00:00 2001 From: James Lyne Date: Thu, 27 May 2021 19:16:45 +0100 Subject: [PATCH] Use radio buttons for map list --- src/components/SvgIcon.vue | 7 +-- src/components/map/MapContextMenu.vue | 2 +- src/components/sidebar/WorldList.vue | 14 +++-- src/components/sidebar/WorldListItem.vue | 69 +++++++++++------------- 4 files changed, 46 insertions(+), 46 deletions(-) diff --git a/src/components/SvgIcon.vue b/src/components/SvgIcon.vue index dbb1a59..5adcc1d 100644 --- a/src/components/SvgIcon.vue +++ b/src/components/SvgIcon.vue @@ -51,8 +51,9 @@ export default { diff --git a/src/components/map/MapContextMenu.vue b/src/components/map/MapContextMenu.vue index eb59e49..39b0368 100644 --- a/src/components/map/MapContextMenu.vue +++ b/src/components/map/MapContextMenu.vue @@ -20,7 +20,7 @@
  • - + diff --git a/src/components/sidebar/WorldList.vue b/src/components/sidebar/WorldList.vue index d0ea95a..aea9f84 100644 --- a/src/components/sidebar/WorldList.vue +++ b/src/components/sidebar/WorldList.vue @@ -18,10 +18,10 @@ @@ -31,10 +31,12 @@ import WorldListItem from './WorldListItem.vue'; import {defineComponent} from 'vue'; import {useStore} from "@/store"; import CollapsibleSection from "@/components/sidebar/CollapsibleSection.vue"; +import RadioList from "@/components/util/RadioList.vue"; export default defineComponent({ name: 'WorldList', components: { + RadioList, CollapsibleSection, WorldListItem }, @@ -50,6 +52,10 @@ export default defineComponent({ worlds() { return useStore().state.worlds; + }, + + currentServer() { + return useStore().state.currentServer; } } }); diff --git a/src/components/sidebar/WorldListItem.vue b/src/components/sidebar/WorldListItem.vue index 9bed318..c5a30ed 100644 --- a/src/components/sidebar/WorldListItem.vue +++ b/src/components/sidebar/WorldListItem.vue @@ -15,23 +15,22 @@ -->