Browse Source

added backend config frontend componenet

Torkel Ödegaard 11 years ago
parent
commit
55bc150701
1 changed files with 12 additions and 0 deletions
  1. 12 0
      src/app/components/config.js

+ 12 - 0
src/app/components/config.js

@@ -0,0 +1,12 @@
+define([
+  'settings',
+],
+function (Settings) {
+  "use strict";
+
+  var bootData = window.grafanaBootData;
+  var options = bootData.settings;
+
+  return new Settings(options);
+
+});