diff --git a/src/locales/en.json b/src/locales/en.json index c068fc34..8c502b2e 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -173,6 +173,7 @@ "Schedule product sync": "Schedule product sync", "Select run time": "Select run time", "Search jobs": "Search jobs", + "Searched jobs will appear here": "Searched jobs will appear here", "Select jobs": "Select jobs", "select jobs": "select jobs", "Services have been scheduled in bulk": "Services have been scheduled in bulk", diff --git a/src/views/SelectJobsModal.vue b/src/views/SelectJobsModal.vue index 1a27734b..43788278 100644 --- a/src/views/SelectJobsModal.vue +++ b/src/views/SelectJobsModal.vue @@ -10,9 +10,13 @@ - + -
+
+

{{ $t("Searched jobs will appear here") }}

+
+ +

{{ $t("No jobs found") }}

@@ -80,7 +84,7 @@ export default defineComponent({ queryString: '', jobs: [] as any, isScrollable: true, - jobFrequencyType: JSON.parse(process.env?.VUE_APP_JOB_FREQUENCY_TYPE as string) as any, + jobFrequencyType: JSON.parse(process.env?.VUE_APP_JOB_FREQUENCY_TYPE as string) as any } }, computed: { @@ -92,7 +96,7 @@ export default defineComponent({ methods: { async search(event: any) { this.queryString = event.target.value.trim(); - if(this.queryString.length > 0) this.getJobs(); + if(this.queryString) this.getJobs(); }, async getJobs(vSize?: any, vIndex?: any) { const viewSize = vSize ? vSize : process.env.VUE_APP_VIEW_SIZE;