|
|
@@ -1169,7 +1169,7 @@ export default {
|
|
|
this.showMessage('Error deleting item: ' + error.message, 'error')
|
|
|
}
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
showAddModal() {
|
|
|
this.isEditing = false
|
|
|
this.formData = {
|
|
|
@@ -1736,7 +1736,7 @@ export default {
|
|
|
this.showInvoiceItemsModal = false
|
|
|
this.selectedInvoice = {}
|
|
|
this.invoiceItems = []
|
|
|
- }
|
|
|
+ },
|
|
|
|
|
|
async saveInvoiceItem() {
|
|
|
try {
|
|
|
@@ -1804,7 +1804,7 @@ export default {
|
|
|
this.showMessage('Logged out successfully!', 'success')
|
|
|
},
|
|
|
|
|
|
- checkAuthStatus() {
|
|
|
+ async checkAuthStatus() {
|
|
|
try {
|
|
|
const response = await axios.get('/api/auth.php?action=status')
|
|
|
if (response.data.user) {
|
|
|
@@ -1820,7 +1820,6 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-}
|
|
|
</script>
|
|
|
|
|
|
<style scoped>
|