Randomly select region icon set

Signed-off-by: Justin Georgi <justin.georgi@gmail.com>
This commit is contained in:
2024-04-20 09:19:45 -07:00
parent 219522181b
commit b180c8bb08
4 changed files with 20 additions and 14 deletions

View File

@@ -3,6 +3,7 @@ import { reactive, computed } from 'vue';
const state = reactive({
disclaimerAgreement: false,
enabledRegions: ['thorax','abdomen','limbs','head'],
regionIconSet: Math.floor(Math.random() * 2) + 1,
version: '0.5.0-rc',
fullscreen: false,
useExternal: 'optional',
@@ -46,6 +47,7 @@ export default () => ({
externalType: computed(() => state.useExternal),
getRegions: computed(() => state.enabledRegions),
getVersion: computed(() => state.version),
getIconSet: computed(() => state.regionIconSet),
set,
agree,
getServerList,