fix(fe): show error message in non-admin user tries create first project

This commit is contained in:
Denis Gukov 2022-02-04 16:17:55 +05:00
parent 98b21bfe6e
commit 2d8b934124

View File

@ -8,7 +8,7 @@
<div class="project-settings-form">
<div style="height: 220px;">
<ProjectForm item-id="new" ref="editForm"/>
<ProjectForm item-id="new" ref="editForm" @save="onSave"/>
</div>
<div class="text-right">
@ -33,20 +33,20 @@ export default {
},
methods: {
showDrawer() {
EventBus.$emit('i-show-drawer');
},
async createProject() {
const item = await this.$refs.editForm.save();
if (!item) {
return;
}
onSave(item) {
EventBus.$emit('i-project', {
action: 'new',
item,
});
},
showDrawer() {
EventBus.$emit('i-show-drawer');
},
async createProject() {
await this.$refs.editForm.save();
},
},
};
</script>