AdGuard block percent widget (#493)

This commit is contained in:
Alicia Sykes
2022-05-29 15:45:33 +01:00
committed by Alicia Sykes
parent b974b68852
commit 7b99e9092b
2 changed files with 89 additions and 1 deletions

View File

@@ -20,8 +20,15 @@
</div>
<!-- Widget -->
<div :class="`widget-wrap ${ error ? 'has-error' : '' }`">
<AdGuardStats
v-if="widgetType === 'adguard-stats'"
:options="widgetOptions"
@loading="setLoaderState"
@error="handleError"
:ref="widgetRef"
/>
<AnonAddy
v-if="widgetType === 'anonaddy'"
v-else-if="widgetType === 'anonaddy'"
:options="widgetOptions"
@loading="setLoaderState"
@error="handleError"
@@ -428,6 +435,7 @@ export default {
OpenIcon,
LoadingAnimation,
// Register widget components
AdGuardStats: () => import('@/components/Widgets/AdGuardStats.vue'),
AnonAddy: () => import('@/components/Widgets/AnonAddy.vue'),
Apod: () => import('@/components/Widgets/Apod.vue'),
BlacklistCheck: () => import('@/components/Widgets/BlacklistCheck.vue'),