feat(app/metrics): warn about missing extras features permissions (closes #1177)

This commit is contained in:
lowlighter
2022-12-19 19:46:08 -05:00
parent d2ac7b6266
commit d14f49fce2
2 changed files with 9 additions and 0 deletions

View File

@@ -85,6 +85,12 @@
<template v-if="metrics">
<section class="container">
<div class="warning" v-if="warnings.length">
<div v-for="warning in warnings">⚠️ {{ warning.message }}</div>
</div>
</section>
<section class="container">
<a :href="`https://github.com/${user}`" class="user">
<img :src="account.avatar">

View File

@@ -169,6 +169,9 @@
params() {
return new URLSearchParams({from: location.href})
},
warnings() {
return Object.entries(this.metrics?.rendered.plugins ?? {}).map(([_, value]) => value?.error).filter(value => value)
},
stats() {
return this.metrics?.rendered.user ?? null
},