Skip to content

Commit

Permalink
Merge pull request #40 from Scille/ms-add-image-on-action-bar-button
Browse files Browse the repository at this point in the history
[MS] Add MsImage on actionbar button
  • Loading branch information
fabienSvtr authored Apr 29, 2024
2 parents 541fa0e + b8cb679 commit 2d8de5d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/components/ms-action-bar/MsActionBarButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,27 @@
size="default"
>
<ion-icon
v-show="icon"
v-if="icon"
slot="start"
:icon="icon"
/>
<ms-image
v-if="!icon && image"
:image="image"
/>
{{ $msTranslate(buttonLabel) }}
</ion-button>
</template>

<script setup lang="ts">
import { MsImage } from '@lib/components/ms-image';
import { Translatable } from '@lib/services/translation';
import { IonButton, IonIcon } from '@ionic/vue';
defineProps<{
buttonLabel?: Translatable;
icon?: string;
image?: string;
}>();
</script>

Expand Down

0 comments on commit 2d8de5d

Please sign in to comment.