feat(app/metrics): warn about missing extras features permissions (closes #1177)
This commit is contained in:
@@ -85,6 +85,12 @@
|
|||||||
|
|
||||||
<template v-if="metrics">
|
<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">
|
<section class="container">
|
||||||
<a :href="`https://github.com/${user}`" class="user">
|
<a :href="`https://github.com/${user}`" class="user">
|
||||||
<img :src="account.avatar">
|
<img :src="account.avatar">
|
||||||
|
|||||||
@@ -169,6 +169,9 @@
|
|||||||
params() {
|
params() {
|
||||||
return new URLSearchParams({from: location.href})
|
return new URLSearchParams({from: location.href})
|
||||||
},
|
},
|
||||||
|
warnings() {
|
||||||
|
return Object.entries(this.metrics?.rendered.plugins ?? {}).map(([_, value]) => value?.error).filter(value => value)
|
||||||
|
},
|
||||||
stats() {
|
stats() {
|
||||||
return this.metrics?.rendered.user ?? null
|
return this.metrics?.rendered.user ?? null
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user