| Index: ui/file_manager/file_manager/foreground/js/ui/file_manager_ui.js
|
| diff --git a/ui/file_manager/file_manager/foreground/js/ui/file_manager_ui.js b/ui/file_manager/file_manager/foreground/js/ui/file_manager_ui.js
|
| index 03e4fbd27d3d5af4e28a1624dabf42e44cdc3463..83464b92e9603aaa69088d88d03adf01e78ab7e4 100644
|
| --- a/ui/file_manager/file_manager/foreground/js/ui/file_manager_ui.js
|
| +++ b/ui/file_manager/file_manager/foreground/js/ui/file_manager_ui.js
|
| @@ -369,8 +369,12 @@ FileManagerUI.prototype.relayout = function() {
|
| FileManagerUI.prototype.setCurrentListType = function(listType) {
|
| this.listContainer.setCurrentListType(listType);
|
|
|
| - this.toggleViewButton.classList.toggle(
|
| - 'thumbnail', listType === ListContainer.ListType.DETAIL);
|
| + var isListView = (listType === ListContainer.ListType.DETAIL);
|
| + this.toggleViewButton.classList.toggle('thumbnail', isListView);
|
| +
|
| + var label = isListView ? str('CHANGE_TO_THUMBNAILVIEW_BUTTON_LABEL') :
|
| + str('CHANGE_TO_LISTVIEW_BUTTON_LABEL');
|
| + this.toggleViewButton.setAttribute('aria-label', label);
|
| this.relayout();
|
| };
|
|
|
|
|