From 06817acd6c493794833f56a39135fc21b413ab00 Mon Sep 17 00:00:00 2001 From: Will Isles Date: Mon, 30 Aug 2021 21:17:46 +0200 Subject: [PATCH] updated clear player list prompt --- src/components/Menu.vue | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/components/Menu.vue b/src/components/Menu.vue index dd8f23a..cbbfe34 100644 --- a/src/components/Menu.vue +++ b/src/components/Menu.vue @@ -321,7 +321,11 @@ export default { }, addPlayerList() { if (this.session.isSpectator) return; - if (confirm("This will clear all players. Are you sure you want to remove all players?")) { + if ( + confirm( + "This will clear all players. Are you sure you want to do this?" + ) + ) { // abort vote if in progress if (this.session.nomination) { this.$store.commit("session/nomination"); @@ -329,11 +333,11 @@ export default { this.$store.commit("players/clear"); const names = prompt("Player names (separated by commas)"); if (names) { - names.split(',').map(name => { + names.split(",").map(name => { this.$store.commit("players/add", name); - }) + }); } - } + } }, randomizeSeatings() { if (this.session.isSpectator) return;