File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -503,6 +503,11 @@ export default {
503503 }
504504 },
505505 listUsageServerMetrics () {
506+ if (! (' listUsageServerMetrics' in this .$store .getters .apis )) {
507+ this .serverMetricsLoading = false
508+ return
509+ }
510+
506511 this .serverMetricsLoading = true
507512 api (' listUsageServerMetrics' ).then (json => {
508513 this .stats = []
@@ -639,6 +644,10 @@ export default {
639644 })
640645 },
641646 getUsageTypes () {
647+ if (! (' listUsageTypes' in this .$store .getters .apis )) {
648+ return
649+ }
650+
642651 api (' listUsageTypes' ).then (json => {
643652 if (json && json .listusagetypesresponse && json .listusagetypesresponse .usagetype ) {
644653 this .usageTypes = [{ id: null , value: ' ' }, ... json .listusagetypesresponse .usagetype .map (x => {
You can’t perform that action at this time.
0 commit comments