Skip to content

Commit

Permalink
FOUR-11300:Reload After Search is not working
Browse files Browse the repository at this point in the history
  • Loading branch information
fagubla committed Oct 24, 2023
1 parent 5da8679 commit 10d7c71
Showing 1 changed file with 19 additions and 13 deletions.
32 changes: 19 additions & 13 deletions src/components/renderer/form-list-table.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,19 @@
<template v-if="dataControl.dropdownShow === 'requests'">
<b-dropdown variant="custom" no-caret>
<template #button-content>
<i class="fas fa-caret-down"></i>
<i class="fas fa-caret-down" />
</template>
<b-dropdown-item
@click="handleDropdownSelection('requests_filter', 'by_me')"
>{{ $t("Requester") }}</b-dropdown-item
>
{{ $t("Requester") }}</b-dropdown-item
>
<b-dropdown-item
@click="
handleDropdownSelection('requests_filter', 'as_participant')
"
>{{ $t("Participant") }}
>
{{ $t("Participant") }}
</b-dropdown-item>
</b-dropdown>
</template>
Expand All @@ -48,20 +50,21 @@
handleDropdownSelection('requests_dropdown', 'In Progress')
"
>
<i class="fas fa-circle mr-2"></i>{{ $t("In Progress") }}
<i class="fas fa-circle mr-2" />{{ $t("In Progress") }}
</b-dropdown-item>
<b-dropdown-item
variant="primary"
@click="
handleDropdownSelection('requests_dropdown', 'Completed')
"
>
<i class="fas fa-circle mr-2"></i>{{ $t("Completed") }}
<i class="fas fa-circle mr-2" />{{ $t("Completed") }}
</b-dropdown-item>
<b-dropdown-item
@click="handleDropdownSelection('requests_dropdown', 'all')"
>{{ $t(titleDropdown) }}</b-dropdown-item
>
{{ $t(titleDropdown) }}
</b-dropdown-item>
</b-dropdown>
</div>
</template>
Expand Down Expand Up @@ -89,10 +92,9 @@
:label="'Overdue'"
></AvatarDropdown>
</b-dropdown-item>
<b-dropdown-item
@click="handleDropdownSelection('tasks', 'all')"
>{{ $t(titleDropdown) }}</b-dropdown-item
>
<b-dropdown-item @click="handleDropdownSelection('tasks', 'all')">
{{ $t(titleDropdown) }}
</b-dropdown-item>
</b-dropdown>
</div>
</template>
Expand All @@ -112,7 +114,11 @@
class="form-control narrow-input"
@keyup.enter="performSearch(dataControl.dropdownShow)"
/>
<button v-if="showInput" class="btn btn-clear" @click="clearSearch">
<button
v-if="showInput"
class="btn btn-clear"
@click="clearSearch(dataControl.dropdownShow)"
>
<i class="fas fa-times" />
</button>
</div>
Expand Down Expand Up @@ -226,9 +232,9 @@ export default {
this.$root.$emit("dropdownSelectionStart", `${this.searchCriteria}`);
}
},
clearSearch() {
clearSearch(listType) {
this.searchCriteria = "";
this.toggleInput();
this.toggleInput(listType);
}
}
};
Expand Down

0 comments on commit 10d7c71

Please sign in to comment.