Explorar el Código

style(dashlist): rename last viewed -> recently viewed

bergquist hace 9 años
padre
commit
62b21c586d
Se han modificado 2 ficheros con 4 adiciones y 4 borrados
  1. 2 2
      public/app/plugins/panel/dashlist/module.ts
  2. 2 2
      public/dashboards/home.json

+ 2 - 2
public/app/plugins/panel/dashlist/module.ts

@@ -32,7 +32,7 @@ class DashListCtrl extends PanelCtrl {
 
 
   initEditMode() {
   initEditMode() {
     super.initEditMode();
     super.initEditMode();
-    this.modes = ['starred', 'search', 'last viewed'];
+    this.modes = ['starred', 'search', 'recently viewed'];
     this.icon = "fa fa-star";
     this.icon = "fa fa-star";
     this.addEditorTab('Options', () => {
     this.addEditorTab('Options', () => {
       return {templateUrl: 'public/app/plugins/panel/dashlist/editor.html'};
       return {templateUrl: 'public/app/plugins/panel/dashlist/editor.html'};
@@ -42,7 +42,7 @@ class DashListCtrl extends PanelCtrl {
   refresh() {
   refresh() {
     var params: any = {limit: this.panel.limit};
     var params: any = {limit: this.panel.limit};
 
 
-    if (this.panel.mode === 'last viewed') {
+    if (this.panel.mode === 'recently viewed') {
 
 
       var dashListNames = impressions.getDashboardOpened().filter((imp) => {
       var dashListNames = impressions.getDashboardOpened().filter((imp) => {
         return imp.orgId === config.bootData.user.orgId;
         return imp.orgId === config.bootData.user.orgId;

+ 2 - 2
public/dashboards/home.json

@@ -47,11 +47,11 @@
         {
         {
           "id": 3,
           "id": 3,
           "limit": 10,
           "limit": 10,
-          "mode": "last viewed",
+          "mode": "recently viewed",
           "query": "",
           "query": "",
           "span": 6,
           "span": 6,
           "tags": [],
           "tags": [],
-          "title": "Last 10 viewed dashboards",
+          "title": "Recently viewed dashboards",
           "type": "dashlist"
           "type": "dashlist"
         }
         }
       ],
       ],