ソースを参照

Closes #294, Browser page title is now Grafana - {{dashboard title}}

Torkel Ödegaard 11 年 前
コミット
d69b04e9ed
2 ファイル変更3 行追加0 行削除
  1. 1 0
      CHANGELOG.md
  2. 2 0
      src/app/services/dashboard.js

+ 1 - 0
CHANGELOG.md

@@ -6,6 +6,7 @@
 - Use influxdb aliases to distinguish between multiple columns (Issue #283)
 - Correction to ms axis formater, now formats days correctly. (Issue #189)
 - Css fix for Firefox and using top menu dropdowns in panel fullscren / edit mode (Issue #106)
+- Browser page title is now Grafana - {{dashboard title}} (Issue #294)
 - More graphite functions
 
 # 1.5.2 (2014-03-24)

+ 2 - 0
src/app/services/dashboard.js

@@ -152,6 +152,8 @@ function (angular, $, kbn, _, config, moment, Modernizr) {
       // Make sure the dashboard being loaded has everything required
       dashboard = dash_defaults(dashboard);
 
+      window.document.title = 'Grafana - ' + dashboard.title;
+
       // Set the current dashboard
       self.current = angular.copy(dashboard);