Skip to content
Snippets Groups Projects
Commit 9e5657b5 authored by uhensler's avatar uhensler
Browse files

OO-4207: Delete unnecessary velocity container

parent 752b4e28
No related branches found
No related tags found
No related merge requests found
......@@ -22,7 +22,6 @@ package org.olat.course.learningpath.ui;
import org.olat.core.gui.UserRequest;
import org.olat.core.gui.components.Component;
import org.olat.core.gui.components.tabbedpane.TabbedPane;
import org.olat.core.gui.components.velocity.VelocityContainer;
import org.olat.core.gui.control.Controller;
import org.olat.core.gui.control.Event;
import org.olat.core.gui.control.WindowControl;
......@@ -40,24 +39,19 @@ public class TabbableLeaningPathNodeConfigController extends ActivateableTabbabl
private static final String PANE_TAB_LEARNIN_PATH = "pane.tab.learning.path";
private final static String[] paneKeys = { PANE_TAB_LEARNIN_PATH };
private final VelocityContainer configVC;
private final Controller configCtrl;
private TabbedPane tabPane;
public TabbableLeaningPathNodeConfigController(UserRequest ureq, WindowControl wControl, Controller configCtrl) {
super(ureq, wControl);
this.configCtrl = configCtrl;
listenTo(configCtrl);
configVC = createVelocityContainer("config");
configVC.put("config", configCtrl.getInitialComponent());
}
@Override
public void addTabs(TabbedPane tabbedPane) {
tabPane = tabbedPane;
tabbedPane.addTab(translate(PANE_TAB_LEARNIN_PATH), configVC);
tabbedPane.addTab(translate(PANE_TAB_LEARNIN_PATH), configCtrl.getInitialComponent());
}
@Override
......
$r.render("config")
\ No newline at end of file
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