Fix actor auto-complete

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2022-01-18 12:51:37 +01:00
parent fbe5a8d0c4
commit c57d192abe
5 changed files with 27 additions and 135 deletions

View File

@@ -9,20 +9,22 @@
<div class="actor-name">
<p>
{{ actor.name || `@${usernameWithDomain(actor)}` }}
{{ displayName(actor) }}
</p>
</div>
</div>
</template>
<script lang="ts">
import { Component, Vue, Prop } from "vue-property-decorator";
import { IActor, usernameWithDomain } from "../../types/actor";
import { displayName, IActor, usernameWithDomain } from "../../types/actor";
@Component
export default class ActorInline extends Vue {
@Prop({ required: true, type: Object }) actor!: IActor;
usernameWithDomain = usernameWithDomain;
displayName = displayName;
}
</script>
<style lang="scss" scoped>