fixed profile
This commit is contained in:
@@ -48,10 +48,11 @@
|
||||
<p class="text-gray-400">Location not available...</p>
|
||||
</div>
|
||||
|
||||
<ProfileSummary
|
||||
<ProfileSummary
|
||||
class="xl:col-span-5"
|
||||
:customer="customer"
|
||||
:customer="customer"
|
||||
:automatic_status="automatic_status"
|
||||
:customer_description="customer_description.description"
|
||||
@toggle-automatic="userAutomatic"
|
||||
/>
|
||||
</div>
|
||||
@@ -271,7 +272,12 @@ export default defineComponent({
|
||||
this.getCustomer(this.$route.params.id);
|
||||
},
|
||||
mounted() {
|
||||
// getPage is now called from within getCustomer, so this can be removed if it's redundant
|
||||
// Check for success query parameter and show notification
|
||||
if (this.$route.query.success === 'true') {
|
||||
this.$notify({ title: "Success", text: "Customer edited successfully!", type: "success" });
|
||||
// Clean up the URL by removing the query parameter
|
||||
this.$router.replace({ name: this.$route.name, params: this.$route.params, query: {} });
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
'$route.params.id'(newId) {
|
||||
|
||||
Reference in New Issue
Block a user