mirror of
https://github.com/Xevion/the-office.git
synced 2025-12-09 14:08:53 -06:00
Fix character badges to fit new character appearances data structure
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
<template>
|
||||
<div class="pt-2" v-if="characters" :fluid="true">
|
||||
<b-button squared class="mx-2 my-1 character-button" size="sm" v-for="character in characters"
|
||||
:key="character.name" :id="`character-${character.id}`"
|
||||
<b-button squared class="mx-2 my-1 character-button" size="sm" v-for="(character, character_id) in characters"
|
||||
:key="character.name" :id="`character-${character_id}`"
|
||||
:title="`${character.appearances} Quote${character.appearances > 1 ? 's' : ''}`"
|
||||
:to="{ name: 'Character', params: { character: character.id } }"
|
||||
:to="{ name: 'Character', params: { character: character_id } }"
|
||||
>
|
||||
{{ character.name }}
|
||||
<b-badge class="ml-1">{{ character.appearances }}</b-badge>
|
||||
@@ -15,7 +15,7 @@
|
||||
export default {
|
||||
props: {
|
||||
characters: {
|
||||
type: Array,
|
||||
type: Object,
|
||||
required: true
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user