Skip to content

Commit

Permalink
Improved: update empty-state check, arrange ionic component imports &…
Browse files Browse the repository at this point in the history
… wrapped ion-button into ion-buttons(hotwax#726)
  • Loading branch information
R-Sourabh committed Nov 27, 2024
1 parent 3d5326e commit 4887cfb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/components/JobConfiguration.vue
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ import emitter from '@/event-bus';
import { Actions, hasPermission } from '@/authorization'
import CustomFrequencyModal from '@/components/CustomFrequencyModal.vue';
import JobParameterModal from '@/components/JobParameterModal.vue'
import LearnMoreModal from "./LearnMoreModal.vue";
import LearnMoreModal from "@/components/LearnMoreModal.vue";
export default defineComponent({
name: "JobConfiguration",
Expand Down
14 changes: 8 additions & 6 deletions src/components/LearnMoreModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@
</ion-button>
</ion-buttons>
<ion-title>{{ translate("Learn more") }}</ion-title>
<ion-button slot="end" fill="clear" @click="redirectToJobsDoc()">
<ion-icon color="medium" :icon="openOutline" />
</ion-button>
<ion-buttons slot="end">
<ion-button fill="clear" @click="redirectToJobsDoc()">
<ion-icon color="medium" :icon="openOutline" />
</ion-button>
</ion-buttons>
</ion-toolbar>
</ion-header>

Expand All @@ -21,14 +23,14 @@
</ion-item>
</div>

<div class="empty-state" v-else-if="!askResponse">
<div class="empty-state" v-else-if="!Object.keys(askResponse).length">
<ion-item lines="none">
<p>{{ translate("The job details is not generating, please try again later.") }}</p>
</ion-item>
</div>

<div v-else>
<ion-item class="ion-margin-top">
<ion-item lines="full" class="ion-margin-top">
<ion-label>
{{ queryString }}
<p>{{ currentJob?.systemJobEnumId }}</p>
Expand Down Expand Up @@ -77,8 +79,8 @@ export default defineComponent({
IonIcon,
IonItem,
IonLabel,
IonSpinner,
IonList,
IonSpinner,
IonTitle,
IonToolbar
},
Expand Down

0 comments on commit 4887cfb

Please sign in to comment.