From 29e24ecf814cc5a58bbd35f089e1e1f16da9cd05 Mon Sep 17 00:00:00 2001 From: m1k1o Date: Tue, 23 Mar 2021 23:26:26 +0100 Subject: [PATCH] set default neko image. --- client/src/components/RoomsCreate.vue | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/client/src/components/RoomsCreate.vue b/client/src/components/RoomsCreate.vue index f0646c1..8763106 100644 --- a/client/src/components/RoomsCreate.vue +++ b/client/src/components/RoomsCreate.vue @@ -320,12 +320,20 @@ export default class RoomsCreate extends Vue { Clear() { this._form.resetValidation() - this.data = { ...this.$store.state.defaultRoomSettings } + this.data = { + ...this.$store.state.defaultRoomSettings, + // eslint-disable-next-line + neko_image: this.nekoImages[0], + } } Close() { this.Clear() this.$emit('finished', true) } + + mounted() { + this.Clear() + } }