Skip to content
Snippets Groups Projects
Commit 87de2200 authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms
Browse files

resurrect lost method in courseware tabs component, fixes #4975

Closes #4975

Merge request studip/studip!3734
parent de4159a0
No related branches found
No related tags found
No related merge requests found
...@@ -76,6 +76,9 @@ export default { ...@@ -76,6 +76,9 @@ export default {
break; break;
} }
}, },
getActiveTabElement() {
return this.$refs['tabnav' + this.activeTab][0];
},
}, },
provide() { provide() {
return { return {
......
...@@ -85,7 +85,6 @@ export default { ...@@ -85,7 +85,6 @@ export default {
context: 'context', context: 'context',
userById: 'users/byId', userById: 'users/byId',
userId: 'userId', userId: 'userId',
selectedToolbarItem: 'selectedToolbarItem',
currentElementisLink: 'currentElementisLink', currentElementisLink: 'currentElementisLink',
}), }),
isTeacher() { isTeacher() {
...@@ -107,7 +106,7 @@ export default { ...@@ -107,7 +106,7 @@ export default {
} }
}, },
activate() { activate() {
const focusElement = this.$refs.tabs.getTabButtonByAlias(this.selectedToolbarItem); const focusElement = this.$refs.tabs.getActiveTabElement();
if (focusElement) { if (focusElement) {
this.initialFocusElement = focusElement; this.initialFocusElement = focusElement;
this.trap = true; this.trap = true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment