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