Skip to content

Commit

Permalink
refactor: remove ListFilter logic (#5391)
Browse files Browse the repository at this point in the history
Co-authored-by: Renan Cidale Assumpcao <renan.cidale@universalunits.com>
Co-authored-by: Haoqun Jiang <haoqunjiang@gmail.com>
  • Loading branch information
3 people committed Aug 27, 2020
1 parent 9641d6d commit ebee882
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions packages/@vue/cli-ui/src/components/dashboard/WidgetAddPane.vue
Expand Up @@ -34,19 +34,12 @@
/>

<template v-else-if="data">
<ListFilter
:list="data.widgetDefinitions"
:filter="filterDefinition"
>
<template slot-scope="{ list }">
<WidgetAddItem
v-for="definition of list"
v-if="definition.canAddMore"
:key="definition.id"
:definition="definition"
/>
</template>
</ListFilter>
<WidgetAddItem
v-for="definition of data.widgetDefinitions.filter(filterDefinition)"
v-if="definition.canAddMore"
:key="definition.id"
:definition="definition"
/>
</template>
</template>
</ApolloQuery>
Expand Down

0 comments on commit ebee882

Please sign in to comment.