mirror of
https://github.com/grafana/grafana.git
synced 2024-11-23 09:26:43 -06:00
style(dashlist): rename last viewed -> recently viewed
This commit is contained in:
parent
606c75162f
commit
62b21c586d
@ -32,7 +32,7 @@ class DashListCtrl extends PanelCtrl {
|
||||
|
||||
initEditMode() {
|
||||
super.initEditMode();
|
||||
this.modes = ['starred', 'search', 'last viewed'];
|
||||
this.modes = ['starred', 'search', 'recently viewed'];
|
||||
this.icon = "fa fa-star";
|
||||
this.addEditorTab('Options', () => {
|
||||
return {templateUrl: 'public/app/plugins/panel/dashlist/editor.html'};
|
||||
@ -42,7 +42,7 @@ class DashListCtrl extends PanelCtrl {
|
||||
refresh() {
|
||||
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) => {
|
||||
return imp.orgId === config.bootData.user.orgId;
|
||||
|
@ -47,11 +47,11 @@
|
||||
{
|
||||
"id": 3,
|
||||
"limit": 10,
|
||||
"mode": "last viewed",
|
||||
"mode": "recently viewed",
|
||||
"query": "",
|
||||
"span": 6,
|
||||
"tags": [],
|
||||
"title": "Last 10 viewed dashboards",
|
||||
"title": "Recently viewed dashboards",
|
||||
"type": "dashlist"
|
||||
}
|
||||
],
|
||||
|
Loading…
Reference in New Issue
Block a user