mirror of
https://github.com/Av0idD4rk/packmate.git
synced 2026-10-23 16:31:01 +00:00
Теперь сервис появляется сразу после добавления
This commit is contained in:
parent
918c7ca85a
commit
031d3542e6
@ -60,7 +60,7 @@ export default {
|
||||
},
|
||||
});
|
||||
instance.post('/service/', this.service)
|
||||
.then(this.$emit('serviceAddDone'))
|
||||
.then(response => this.$emit('serviceAddDone', response.data))
|
||||
.catch(error => console.error('Failed to add service', error));
|
||||
},
|
||||
},
|
||||
|
||||
@ -13,7 +13,9 @@
|
||||
<SettingsModal v-if="showSettingsModal" @close="showSettingsModal = false"></SettingsModal>
|
||||
</transition>
|
||||
<transition name="modal">
|
||||
<AddServiceModal v-if="showAddServiceModal" @serviceAddDone="reloadNavbar(); showAddServiceModal = false" @close="showAddServiceModal = false"></AddServiceModal>
|
||||
<AddServiceModal v-if="showAddServiceModal"
|
||||
@serviceAddDone="$refs.navbar.ctfServices.push($event); showAddServiceModal = false"
|
||||
@close="showAddServiceModal = false"></AddServiceModal>
|
||||
</transition>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user