0
0
Fork 0

Make it so that the guild id entry actually works

This commit is contained in:
Oliver-Akins 2022-01-05 17:34:46 -07:00
parent 173dc01351
commit 4c924095d7

View file

@ -22,7 +22,7 @@
type="text"
name="Server ID"
id="server-id"
v-model="guildID"
v-model="guild_id"
>
</div>
<div
@ -38,7 +38,7 @@
Cancel
</button>
<button
v-if="guildID && !hasError"
v-if="guild_id && !hasError"
@click.stop="loadHistory"
>
Load History
@ -52,11 +52,11 @@
<script>
export default {
data() {return {
guildID: ``,
guild_id: ``,
}},
computed: {
hasError() {
return this.guildID.match(/[^0-9]/g) != null;
return this.guild_id.match(/[^0-9]/g) != null;
},
},
methods: {
@ -64,7 +64,7 @@ export default {
this.$emit(`change-state`, `login`);
},
loadHistory() {
this.$emit(`set-guild`, this.guildID);
this.$emit(`set-guild`, this.guild_id);
this.$emit(`change-state`, `view-history`);
},
},