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

[skip ci] fix assign self

parent 96ea697b
......@@ -71,7 +71,7 @@ export default {
},
methods: {
assignSelf() {
this.$emit('assignSelf');
this.$emit('assign-self');
},
toggleShowLess() {
this.showLess = !this.showLess;
......
......@@ -40,9 +40,11 @@ export default {
this.loading = false;
}
const setLoadingFalseWrapper = setLoadingFalse.bind(this);
this.mediator.saveSelectedUsers(this.field)
.then(setLoadingFalse)
.catch(setLoadingFalse);
.then(setLoadingFalseWrapper)
.catch(setLoadingFalseWrapper);
},
},
created() {
......@@ -67,6 +69,7 @@ export default {
v-if="!loading"
:root-path="store.rootPath"
:users="store.renderedUsers"
@assign-self="assignSelf"
/>
</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