diff --git a/frontend/src/components/ListViews/LeadsListView.vue b/frontend/src/components/ListViews/LeadsListView.vue
index 8336a364..57b8cd55 100644
--- a/frontend/src/components/ListViews/LeadsListView.vue
+++ b/frontend/src/components/ListViews/LeadsListView.vue
@@ -21,7 +21,8 @@
@@ -104,7 +105,7 @@
@@ -187,7 +188,8 @@ import {
Dropdown,
Tooltip,
} from 'frappe-ui'
-import { ref, watch } from 'vue'
+import { sessionStore } from '@/stores/session'
+import { ref, computed, watch } from 'vue'
const props = defineProps({
rows: {
@@ -220,6 +222,19 @@ const emit = defineEmits([
const pageLengthCount = defineModel()
const list = defineModel('list')
+const isLikeFilterApplied = computed(() => {
+ return list.value.params?.filters?._liked_by ? true : false
+})
+
+const { user } = sessionStore()
+
+function isLiked(item) {
+ if (item) {
+ let likedByMe = JSON.parse(item)
+ return likedByMe.includes(user)
+ }
+}
+
watch(pageLengthCount, (val, old_value) => {
if (val === old_value) return
emit('updatePageCount', val)