Get rid of annoying alert after successfully creating transaction and replace it with conditional notification
MODIFY
resources/assets/js/components/TransactionWizard.vue
resources/assets/js/components/TransactionWizard.vue
<span v-if="loading">Loading</span>
<span v-if="!loading">Create</span>
</button>
+ <div
+ v-if="success"
+ class="mt-2"
+ style="color: green;"
+ >Successfully created transaction</div>
</div>
</template>
recurringEnd: 'forever',
recurringEndDate: '',
- loading: false
+ loading: false,
+ success: false
}
},
methods: {
switchType(type) {
this.type = type
+
+ this.success = false
},
tagUpdated(payload) {
this.recurringEnd = 'forever'
this.recurringEndDate = ''
- alert('Success')
+ this.success = true
},
handleErrors(response) {
if (response.status != 422) {
alert('Something went wrong')
}
+
+ this.success = false
}
}
}

Get rid of annoying alert after successfully creating transaction and replace it with conditional notification