feat(app/metrics): warn about missing extras features permissions (closes #1177)
This commit is contained in:
@@ -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">
|
||||
|
||||
@@ -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
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user