-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from ymaheshwari1/fix-find
Fixed: mutation names, added filters for mobile view, enabled keyboard accessbility on location form and fixed filters on the find page
- Loading branch information
Showing
9 changed files
with
183 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
<template> | ||
<ion-menu type="overlay" side="end"> | ||
<ion-header> | ||
<ion-toolbar> | ||
<ion-title>{{ translate("Filters") }}</ion-title> | ||
</ion-toolbar> | ||
</ion-header> | ||
|
||
<ion-content> | ||
<ion-list> | ||
<ion-item lines="none"> | ||
<ion-icon :icon="globeOutline" slot="start" /> | ||
<ion-label>{{ translate("Product Store") }}</ion-label> | ||
<ion-select interface="popover" v-model="query.productStoreId" @ionChange="updateQuery()"> | ||
<ion-select-option value="">{{ translate("All") }}</ion-select-option> | ||
<ion-select-option :value="productStore.productStoreId" :key="index" v-for="(productStore, index) in productStores">{{ productStore.storeName }}</ion-select-option> | ||
</ion-select> | ||
</ion-item> | ||
<ion-item lines="none"> | ||
<ion-icon :icon="businessOutline" slot="start" /> | ||
<ion-label>{{ translate("Type") }}</ion-label> | ||
<ion-select interface="popover" v-model="query.facilityTypeId" @ionChange="updateQuery()"> | ||
<ion-select-option value="">{{ translate("All") }}</ion-select-option> | ||
<ion-select-option :value="facilityType.facilityTypeId" :key="index" v-for="(facilityType, index) in facilityTypes">{{ facilityType.description }}</ion-select-option> | ||
</ion-select> | ||
</ion-item> | ||
</ion-list> | ||
</ion-content> | ||
</ion-menu> | ||
</template> | ||
|
||
<script lang="ts"> | ||
import { | ||
IonContent, | ||
IonHeader, | ||
IonIcon, | ||
IonItem, | ||
IonLabel, | ||
IonList, | ||
IonMenu, | ||
IonTitle, | ||
IonToolbar, | ||
IonSelect, | ||
IonSelectOption, | ||
menuController | ||
} from '@ionic/vue' | ||
import { businessOutline, globeOutline } from 'ionicons/icons' | ||
import { defineComponent } from 'vue'; | ||
import { mapGetters, useStore } from 'vuex'; | ||
import { translate } from '@hotwax/dxp-components' | ||
export default defineComponent({ | ||
name: 'Filters', | ||
components: { | ||
IonContent, | ||
IonHeader, | ||
IonIcon, | ||
IonItem, | ||
IonLabel, | ||
IonList, | ||
IonMenu, | ||
IonTitle, | ||
IonToolbar, | ||
IonSelect, | ||
IonSelectOption | ||
}, | ||
computed: { | ||
...mapGetters({ | ||
query: "facility/getQuery", | ||
facilityTypes: "util/getFacilityTypes", | ||
productStores: "util/getProductStores" | ||
}) | ||
}, | ||
methods: { | ||
closeMenu() { | ||
menuController.close() | ||
}, | ||
async updateQuery() { | ||
await this.store.dispatch('facility/updateQuery', this.query) | ||
this.closeMenu(); | ||
}, | ||
}, | ||
setup() { | ||
const store = useStore(); | ||
return { | ||
businessOutline, | ||
globeOutline, | ||
store, | ||
translate | ||
}; | ||
} | ||
}) | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.