From d6aa958537f1ac3553ef98c0ae7162b0c73e0234 Mon Sep 17 00:00:00 2001 From: Piyush Singhania Date: Tue, 28 Dec 2021 17:54:38 +0530 Subject: [PATCH] Fixed dropdown CSS, removed sleep, renamed state label for India --- accounting/gst.js | 3 +-- models/doctype/Address/RegionalChanges.js | 4 ++-- src/components/Controls/Select.vue | 1 + 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/accounting/gst.js b/accounting/gst.js index ac3ee6fc..0b44740f 100644 --- a/accounting/gst.js +++ b/accounting/gst.js @@ -1,6 +1,6 @@ import { showMessageDialog } from '@/utils'; import frappe from 'frappejs'; -import { sleep, _ } from 'frappejs/utils'; +import { _ } from 'frappejs/utils'; import { DateTime } from 'luxon'; import { saveExportData } from '../reports/commonExporter'; import { getSavePath } from '../src/utils'; @@ -120,7 +120,6 @@ export async function generateGstr1Json(getReportData) { gstData.b2cs = await generateB2csData(rows); } - await sleep(1); const jsonData = JSON.stringify(gstData); await saveExportData(jsonData, filePath); } diff --git a/models/doctype/Address/RegionalChanges.js b/models/doctype/Address/RegionalChanges.js index 68ba7125..fedbdc3e 100644 --- a/models/doctype/Address/RegionalChanges.js +++ b/models/doctype/Address/RegionalChanges.js @@ -16,9 +16,9 @@ export default function getAugmentedAddress({ country }) { ...Address.fields.slice(0, cityFieldIndex + 1), { fieldname: 'state', - label: 'State', + label: 'State / UT', fieldtype: 'Select', - placeholder: 'State', + placeholder: 'State / UT', options: Object.keys(stateCodeMap).map((key) => capitalize(key)), }, ...Address.fields.slice(cityFieldIndex + 1, Address.fields.length), diff --git a/src/components/Controls/Select.vue b/src/components/Controls/Select.vue index e29bd942..4d8e29ae 100644 --- a/src/components/Controls/Select.vue +++ b/src/components/Controls/Select.vue @@ -31,6 +31,7 @@ v-for="option in options" :key="option.value" :value="option.value" + class="text-black" > {{ option.label }}