Skip to content

Commit

Permalink
Improved: moved print picklist button from header to fab button (#306)
Browse files Browse the repository at this point in the history
  • Loading branch information
amansinghbais committed Oct 17, 2023
1 parent 89c1da1 commit 0e2c78c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 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 @@ -57,7 +62,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 Down Expand Up @@ -235,6 +240,7 @@ export default defineComponent({
return {
closeOutline,
saveOutline,
store,
translate
};
Expand Down

0 comments on commit 0e2c78c

Please sign in to comment.