From 19a4f0e9cd540bb29d00a242ddc3a7a239792717 Mon Sep 17 00:00:00 2001 From: Laila Los <44241786+ElectronicBlueberry@users.noreply.github.com> Date: Wed, 10 Aug 2022 19:04:53 +0200 Subject: [PATCH] add vueified QuotaMeter --- client/src/components/Masthead/Masthead.vue | 9 +- client/src/components/Masthead/QuotaMeter.vue | 89 +++++++++++++++++++ 2 files changed, 95 insertions(+), 3 deletions(-) create mode 100644 client/src/components/Masthead/QuotaMeter.vue diff --git a/client/src/components/Masthead/Masthead.vue b/client/src/components/Masthead/Masthead.vue index f5ff27b83d5..fcef9e0bf4d 100644 --- a/client/src/components/Masthead/Masthead.vue +++ b/client/src/components/Masthead/Masthead.vue @@ -14,7 +14,8 @@ :active-tab="activeTab" /> -
+ + @@ -23,6 +24,7 @@ import { BNavbar, BNavbarBrand, BNavbarNav } from "bootstrap-vue"; import MastheadItem from "./MastheadItem"; import { fetchMenu } from "layout/menu"; import { loadWebhookMenuItems } from "./_webhooks"; +import QuotaMeter from "./QuotaMeter.vue"; export default { name: "Masthead", @@ -31,6 +33,7 @@ export default { BNavbarBrand, BNavbarNav, MastheadItem, + QuotaMeter, }, props: { displayGalaxyBrand: { @@ -93,8 +96,8 @@ export default { loadWebhookMenuItems(this.extensionTabs); }, mounted() { - this.mastheadState.quotaMeter.setElement(this.$refs["quota-meter-container"]); - this.mastheadState.quotaMeter.render(); + //this.mastheadState.quotaMeter.setElement(this.$refs["quota-meter-container"]); + //this.mastheadState.quotaMeter.render(); }, methods: { addItem(item) { diff --git a/client/src/components/Masthead/QuotaMeter.vue b/client/src/components/Masthead/QuotaMeter.vue new file mode 100644 index 00000000000..835c578603a --- /dev/null +++ b/client/src/components/Masthead/QuotaMeter.vue @@ -0,0 +1,89 @@ + + + + +