fixed profile

This commit is contained in:
2025-09-06 14:55:02 -04:00
parent e74f5510f0
commit 6978ed30e1
3 changed files with 16 additions and 4 deletions

View File

@@ -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) {