Commit 22af8970 authored by Clement Ho's avatar Clement Ho

[skip ci] fix assign self

parent 96ea697b
...@@ -71,7 +71,7 @@ export default { ...@@ -71,7 +71,7 @@ export default {
}, },
methods: { methods: {
assignSelf() { assignSelf() {
this.$emit('assignSelf'); this.$emit('assign-self');
}, },
toggleShowLess() { toggleShowLess() {
this.showLess = !this.showLess; this.showLess = !this.showLess;
......
...@@ -40,9 +40,11 @@ export default { ...@@ -40,9 +40,11 @@ export default {
this.loading = false; this.loading = false;
} }
const setLoadingFalseWrapper = setLoadingFalse.bind(this);
this.mediator.saveSelectedUsers(this.field) this.mediator.saveSelectedUsers(this.field)
.then(setLoadingFalse) .then(setLoadingFalseWrapper)
.catch(setLoadingFalse); .catch(setLoadingFalseWrapper);
}, },
}, },
created() { created() {
...@@ -67,6 +69,7 @@ export default { ...@@ -67,6 +69,7 @@ export default {
v-if="!loading" v-if="!loading"
:root-path="store.rootPath" :root-path="store.rootPath"
:users="store.renderedUsers" :users="store.renderedUsers"
@assign-self="assignSelf"
/> />
</div> </div>
`, `,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment