diff --git a/src/components/ProfileBanner.vue b/src/components/ProfileBanner.vue
index d58ee26e..a3dc214d 100644
--- a/src/components/ProfileBanner.vue
+++ b/src/components/ProfileBanner.vue
@@ -81,38 +81,47 @@ const showOverlay = ref(false);
@mouseleave="showOverlay = false"
@click.stop="$emit('view')"
>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
{
+ if (i.status === 'INACTIVE') {
+ return false;
+ }
+ return true;
+ })
+ .forEach((i) => {
+ const productExists = selectProduct.value.some(
+ (product) => product.id === i.id,
+ );
+ if (!productExists) {
+ selectProduct.value.push({ ...i });
+ }
+ });
+}
+
async function fetchListOfOptionBranch() {
const uid = getUserId();
const role = getRole();
@@ -3799,47 +3817,61 @@ watch(
}
"
>
-
-
+
+
{
- if (
- selectProduct.length ===
+ !!inputSearchProductAndService
+ ? selectProduct.length ===
+ resultSearchProduct?.filter((i) => {
+ if (i.status === 'INACTIVE') {
+ return false;
+ }
+ return true;
+ }).length
+ : selectProduct.length ===
productIsAdd?.filter((i) => {
if (i.status === 'INACTIVE') {
return false;
}
return true;
}).length
+ "
+ @click="
+ () => {
+ if (
+ !!inputSearchProductAndService
+ ? selectProduct.length ===
+ resultSearchProduct?.filter((i) => {
+ if (i.status === 'INACTIVE') {
+ return false;
+ }
+ return true;
+ }).length
+ : selectProduct.length ===
+ productIsAdd?.filter((i) => {
+ if (i.status === 'INACTIVE') {
+ return false;
+ }
+ return true;
+ }).length
) {
selectProduct = [];
} else {
- productIsAdd
- ?.filter((i) => {
- if (i.status === 'INACTIVE') {
- return false;
- }
- return true;
- })
- .forEach((i) => {
- const productExists = selectProduct.some(
- (product) => product.id === i.id,
- );
- if (!productExists) {
- selectProduct.push({ ...i });
- }
- });
+ !!inputSearchProductAndService
+ ? resultSearchProduct && selectAllProduct(resultSearchProduct)
+ : productIsAdd && selectAllProduct(productIsAdd);
}
}
"
@@ -3863,10 +3895,17 @@ watch(
-
+