diff --git a/code/websites/pokedex.online/src/components/gamemaster/FilterPanel.vue b/code/websites/pokedex.online/src/components/gamemaster/FilterPanel.vue index cad0885..1bcd00f 100644 --- a/code/websites/pokedex.online/src/components/gamemaster/FilterPanel.vue +++ b/code/websites/pokedex.online/src/components/gamemaster/FilterPanel.vue @@ -64,9 +64,16 @@ const props = defineProps({ data: { type: Array, default: () => [] + }, + filterState: { + type: Object, + default: null } }); +const internalFilterState = useJsonFilter(); +const activeFilterState = computed(() => props.filterState || internalFilterState); + const { filterProperty, filterValue, @@ -79,7 +86,7 @@ const { setFilter, clearFilters, getUniqueValues -} = useJsonFilter(); +} = activeFilterState.value; const hasData = computed( () => Array.isArray(props.data) && props.data.length > 0 diff --git a/code/websites/pokedex.online/src/views/GamemasterExplorer.vue b/code/websites/pokedex.online/src/views/GamemasterExplorer.vue index 3086ced..875ac61 100644 --- a/code/websites/pokedex.online/src/views/GamemasterExplorer.vue +++ b/code/websites/pokedex.online/src/views/GamemasterExplorer.vue @@ -90,120 +90,17 @@ -
{{ item.content }}
- {{ line.content }}
-