Skip to content

Commit

Permalink
Fix legend window title (#613)
Browse files Browse the repository at this point in the history
  • Loading branch information
hwbllmnn committed Aug 10, 2020
1 parent f8ed18a commit 522321c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/view/window/PreviewWindow.js
Expand Up @@ -25,7 +25,8 @@ Ext.define('BasiGX.view.window.PreviewWindow', {
data: {
showLegendTooltip: 'Show Legend',
zoomToProjectionTooltip: 'Zoom to extent of projection',
zoomToLayerTooltip: 'Fit to extent'
zoomToLayerTooltip: 'Fit to extent',
legendTitle: 'Legend'
}
},

Expand Down Expand Up @@ -206,7 +207,7 @@ Ext.define('BasiGX.view.window.PreviewWindow', {
};
url += '?' + Ext.Object.toQueryString(params);
Ext.create('Ext.window.Window', {
title: this.getTitle(),
title: this.getViewModel().get('legendTitle'),
layout: 'fit',
minWidth: 200,
minHeight: 200,
Expand Down

0 comments on commit 522321c

Please sign in to comment.