diff --git a/administrator/components/com_media/resources/scripts/components/tree/drive.vue b/administrator/components/com_media/resources/scripts/components/tree/drive.vue index fcd0aa88ee175..96a30b01e1331 100644 --- a/administrator/components/com_media/resources/scripts/components/tree/drive.vue +++ b/administrator/components/com_media/resources/scripts/components/tree/drive.vue @@ -10,18 +10,26 @@ >
  • - + {{ drive.displayName }}
  • @@ -50,6 +58,12 @@ export default { onDriveClick() { this.navigateTo(this.drive.root); }, + moveFocusToChildElement(nextRoot) { + this.$refs[nextRoot].setFocusToFirstChild(); + }, + restoreFocus() { + this.$refs['drive-root'].focus(); + }, }, }; diff --git a/administrator/components/com_media/resources/scripts/components/tree/item.vue b/administrator/components/com_media/resources/scripts/components/tree/item.vue deleted file mode 100644 index 0794d69384788..0000000000000 --- a/administrator/components/com_media/resources/scripts/components/tree/item.vue +++ /dev/null @@ -1,96 +0,0 @@ - - - diff --git a/administrator/components/com_media/resources/scripts/components/tree/tree.vue b/administrator/components/com_media/resources/scripts/components/tree/tree.vue index 21740eb62edf5..5f3555700f1af 100644 --- a/administrator/components/com_media/resources/scripts/components/tree/tree.vue +++ b/administrator/components/com_media/resources/scripts/components/tree/tree.vue @@ -3,20 +3,52 @@ class="media-tree" role="group" > - + class="media-tree-item" + :class="{active: isActive(item)}" + role="none" + > + + + {{ item.name }} + + + + + diff --git a/administrator/components/com_media/resources/scripts/mediamanager.es6.js b/administrator/components/com_media/resources/scripts/mediamanager.es6.js index 52b763d2ec326..5eac760e70196 100644 --- a/administrator/components/com_media/resources/scripts/mediamanager.es6.js +++ b/administrator/components/com_media/resources/scripts/mediamanager.es6.js @@ -4,7 +4,6 @@ import App from './components/app.vue'; import Disk from './components/tree/disk.vue'; import Drive from './components/tree/drive.vue'; import Tree from './components/tree/tree.vue'; -import TreeItem from './components/tree/item.vue'; import Toolbar from './components/toolbar/toolbar.vue'; import Breadcrumb from './components/breadcrumb/breadcrumb.vue'; import Browser from './components/browser/browser.vue'; @@ -38,7 +37,6 @@ app.use(translate); app.component('MediaDrive', Drive); app.component('MediaDisk', Disk); app.component('MediaTree', Tree); -app.component('MediaTreeItem', TreeItem); app.component('MediaToolbar', Toolbar); app.component('MediaBreadcrumb', Breadcrumb); app.component('MediaBrowser', Browser);