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 6fb84305f8122e1911c9823ac2909b723f3238c6..09596205e52e1fcd224ba938f5f3c8a6a1b57ccd 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 |
@@ -351,15 +351,14 @@ FileManagerUI.prototype.relayout = function() { |
FileManagerUI.prototype.setCurrentListType = function(listType) { |
this.listContainer.setCurrentListType(listType); |
+ var iconElement = queryRequiredElement(this.toggleViewButton, 'core-icon'); |
switch (listType) { |
case ListContainer.ListType.DETAIL: |
- this.toggleViewButton.classList.remove('table'); |
- this.toggleViewButton.classList.add('grid'); |
+ iconElement.icon = 'view-module'; |
break; |
case ListContainer.ListType.THUMBNAIL: |
- this.toggleViewButton.classList.remove('grid'); |
- this.toggleViewButton.classList.add('table'); |
+ iconElement.icon = 'view-list'; |
break; |
default: |