Skip to content

Commit

Permalink
Improved: default image if no url provided and imported Image compone…
Browse files Browse the repository at this point in the history
…nt (hotwax#1)
  • Loading branch information
amansinghbais committed Jan 29, 2025
1 parent c865ddd commit db08bda
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Image.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default defineComponent({
data() {
return {
resourceUrl: "",
imageUrl: ""
imageUrl: require("@/assets/images/defaultImage.png")
}
},
methods: {
Expand Down
1 change: 1 addition & 0 deletions src/views/CreateOrder.vue
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@
import { IonBackButton, IonButton, IonCard, IonCardHeader, IonCardTitle, IonCheckbox, IonChip, IonContent, IonFab, IonFabButton, IonHeader, IonIcon, IonInput, IonItem, IonLabel, IonPage, IonSelect, IonSelectOption, IonThumbnail, IonTitle, IonToolbar } from '@ionic/vue';
import { addCircleOutline, checkmarkDoneOutline, cloudUploadOutline, downloadOutline, ellipsisVerticalOutline, listOutline, sendOutline } from 'ionicons/icons';
import { translate } from '@hotwax/dxp-components'
import Image from '@/components/Image.vue';
</script>

<style scoped>
Expand Down
1 change: 1 addition & 0 deletions src/views/OrderDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@
import { IonBackButton,IonBadge, IonButton, IonCard, IonCardHeader, IonCardTitle, IonChip, IonContent, IonHeader, IonIcon, IonItem, IonLabel, IonList, IonNote, IonPage, IonRadio, IonRadioGroup, IonSelect, IonSelectOption, IonThumbnail, IonTitle, IonToolbar } from "@ionic/vue";
import { translate } from '@hotwax/dxp-components';
import { ellipsisVerticalOutline, ticketOutline, sunnyOutline, checkmarkDoneOutline, downloadOutline, sendOutline, shirtOutline, informationCircleOutline, closeCircleOutline } from "ionicons/icons";
import Image from "@/components/Image.vue";
</script>

<style scoped>
Expand Down
1 change: 1 addition & 0 deletions src/views/Transfers.vue
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ import { IonBadge, IonButton, IonButtons, IonChip, IonContent, IonFab, IonFabBut
import { addOutline, documentTextOutline, downloadOutline, filterOutline, sendOutline, swapVerticalOutline } from 'ionicons/icons';
import { translate } from '@hotwax/dxp-components'
import router from '@/router';
import Image from '@/components/Image.vue';
</script>

<style scoped>
Expand Down

0 comments on commit db08bda

Please sign in to comment.