Skip to content

Commit

Permalink
indentation correct from lint command
Browse files Browse the repository at this point in the history
  • Loading branch information
DanuAnjana committed Nov 1, 2024
1 parent b2384fe commit 3a9581b
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@
<oxd-skeleton width="50%" animate></oxd-skeleton>
</template>
<template v-else>
<a :href="link ? row[link] : '#'" :target="target" :class="linkClasses" @click="handleLinkClick(row, $event)">
<a
:href="link ? row[link] : '#'"
:target="target"
:class="linkClasses"
@click="handleLinkClick(row, $event)"
>
{{ cell }}
</a>
<div v-if="pillProperty" :class="pillClasses">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export default defineComponent({
isLoading,
profilePicture,
handleLinkClick,
isCustomFunctionExist
isCustomFunctionExist,
};
},
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ describe('CardTable > Cell > LinkWithPill.vue', () => {
});

const link = wrapper.find('a');
const event = { preventDefault: jest.fn() };
const event = {preventDefault: jest.fn()};

await link.trigger('click', event);

Expand Down
13 changes: 8 additions & 5 deletions components/src/core/components/ProfilePic/ProfilePic.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
<template>
<div :class="classes">
<slot>
<a v-if="link" :href="link" :target="linkMode" @click="handleLinkClick($event)">
<a
v-if="link"
:href="link"
:target="linkMode"
@click="handleLinkClick($event)"
>
<span
class="img-tag"
:style="`background-image: url(${profileImage})`"
Expand Down Expand Up @@ -30,9 +35,7 @@ import {defaultUser} from './images';
export default defineComponent({
name: 'oxd-profile-pic',
emits: [
'linkClick',
],
emits: ['linkClick'],
props: {
size: {
Expand Down Expand Up @@ -67,7 +70,7 @@ export default defineComponent({
},
methods: {
handleLinkClick(event: MouseEvent | KeyboardEvent) {
if(this.isCustomFunctionExist) {
if (this.isCustomFunctionExist) {
event.preventDefault();
this.$emit('linkClick', event);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,4 @@ describe('ProfilePic.vue', () => {

expect(wrapper.emitted('linkClick')).toBeFalsy();
});

});

0 comments on commit 3a9581b

Please sign in to comment.