Skip to content

Commit

Permalink
Merge pull request #307 from amansinghbais/fulfillment-pwa/#306
Browse files Browse the repository at this point in the history
Improved: moved print picklist button from header to fab button at bottom right of modal (#306)
  • Loading branch information
ravilodhi authored Oct 17, 2023
2 parents 89c1da1 + 36b53fd commit 9f7c267
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/views/AssignPickerModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
</ion-button>
</ion-buttons>
<ion-title>{{ translate("Assign Pickers") }}</ion-title>
<ion-button :disabled="!selectedPickers.length" fill="clear" slot="end" @click="printPicklist()">{{ translate('Print Picklist') }}</ion-button>
</ion-toolbar>
</ion-header>

Expand Down Expand Up @@ -36,6 +35,12 @@
</div>
</ion-list>
</ion-content>

<ion-fab vertical="bottom" horizontal="end" slot="fixed">
<ion-fab-button :disabled="!selectedPickers.length" @click="printPicklist()">
<ion-icon :icon="saveOutline" />
</ion-fab-button>
</ion-fab>
</template>

<script>
Expand All @@ -45,6 +50,8 @@ import {
IonCheckbox,
IonChip,
IonContent,
IonFab,
IonFabButton,
IonHeader,
IonIcon,
IonItem,
Expand All @@ -57,7 +64,7 @@ import {
IonToolbar,
modalController } from "@ionic/vue";
import { defineComponent } from "vue";
import { closeOutline } from "ionicons/icons";
import { closeOutline, saveOutline } from "ionicons/icons";
import { mapGetters, useStore } from "vuex";
import { showToast } from "@/utils";
import { hasError } from "@/adapter";
Expand All @@ -75,6 +82,8 @@ export default defineComponent({
IonCheckbox,
IonChip,
IonContent,
IonFab,
IonFabButton,
IonHeader,
IonIcon,
IonItem,
Expand Down Expand Up @@ -235,6 +244,7 @@ export default defineComponent({
return {
closeOutline,
saveOutline,
store,
translate
};
Expand Down

0 comments on commit 9f7c267

Please sign in to comment.