diff --git a/ui/src/router/views/initialize.vue b/ui/src/router/views/initialize.vue index 8401a34..d389a35 100644 --- a/ui/src/router/views/initialize.vue +++ b/ui/src/router/views/initialize.vue @@ -21,13 +21,27 @@ export default { email: '', password: '', distanceUnit: 1, - currency: 'INR', + currency: '', }, } }, computed: { ...mapGetters('auth', ['isInitialized']), ...mapState('vehicles', ['currencyMasters', 'distanceUnitMasters']), + filteredCurrencyMasters() { + return this.currencyMasters.filter((option) => { + return ( + option.namePlural + .toString() + .toLowerCase() + .indexOf(this.registerModel.currency.toLowerCase()) >= 0 || + option.code + .toString() + .toLowerCase() + .indexOf(this.registerModel.currency.toLowerCase()) >= 0 + ) + }) + }, }, mounted() { store.dispatch('vehicles/fetchMasters').then((data) => {}) @@ -139,6 +153,9 @@ export default { }) .finally(() => (this.isWorking = false)) }, + formatCurrency(option) { + return `${option.namePlural} (${option.code})` + }, }, } @@ -148,15 +165,10 @@ export default {
- If you have an existing Clarkson deployment and you want to migrate your data from that, - press the following button. + If you have an existing Clarkson deployment and you want to migrate your data from that, press the following button.
You need to make sure that this deployment of Hammond can access the MySQL database used by Clarkson.
+If that is not directly possible, you can make a copy of that database somewhere accessible from this instance.
+Once that is done, enter the connection string to the MySQL instance in the following format.
You need to make sure that this deployment of Hammond can access the MySQL database used by - Clarkson.
-If that is not directly possible, you can make a copy of that database somewhere accessible - from this instance.
-Once that is done, enter the connection string to the MySQL instance in the following - format.
-All the users imported from Clarkson will have their username as their email in Clarkson - database and pasword set to hammond
All the users imported from Clarkson will have their username as their email in Clarkson database and pasword set to + hammond
user:pass@tcp(127.0.0.1:3306)/dbname?charset=utf8mb4&parseTime=True&loc=Local
@@ -200,15 +203,8 @@ export default {