mirror of
https://github.com/semaphoreui/semaphore.git
synced 2024-11-25 06:15:56 +01:00
fix(fe): show error message in non-admin user tries create first project
This commit is contained in:
parent
98b21bfe6e
commit
2d8b934124
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user