fixed group issue, fixed dashboard auth issue

pull/443/head
hunterlong 2020-03-21 13:54:46 -07:00
parent b1ada66c86
commit 16317fc391
2 changed files with 5 additions and 6 deletions

View File

@ -6,7 +6,7 @@
</transition></div> </transition></div>
<div class="card-body"> <div class="card-body">
<form @submit="saveGroup"> <form @submit.prevent="saveGroup">
<div class="form-group row"> <div class="form-group row">
<label for="title" class="col-sm-4 col-form-label">Group Name</label> <label for="title" class="col-sm-4 col-form-label">Group Name</label>
<div class="col-sm-8"> <div class="col-sm-8">
@ -24,7 +24,7 @@
</div> </div>
<div class="form-group row"> <div class="form-group row">
<div class="col-sm-12"> <div class="col-sm-12">
<button @click="saveGroup" type="submit" :disabled="loading || group.name === ''" class="btn btn-block" :class="{'btn-primary': !group.id, 'btn-secondary': group.id}"> <button @click.prevent="saveGroup" type="submit" :disabled="loading || group.name === ''" class="btn btn-block" :class="{'btn-primary': !group.id, 'btn-secondary': group.id}">
{{loading ? "Loading..." : group.id ? "Update Group" : "Create Group"}} {{loading ? "Loading..." : group.id ? "Update Group" : "Create Group"}}
</button> </button>
</div> </div>
@ -67,10 +67,9 @@
this.group = {} this.group = {}
this.edit(false) this.edit(false)
}, },
async saveGroup(e) { async saveGroup() {
e.preventDefault();
this.loading = true this.loading = true
if (this.in_group) { if (this.group.id) {
await this.updateGroup() await this.updateGroup()
} else { } else {
await this.createGroup() await this.createGroup()

View File

@ -1 +1 @@
0.90.10 0.90.11