Skip to content

Commit

Permalink
MID-4979 calling of updateTabs function for ConfigurationStep by savi…
Browse files Browse the repository at this point in the history
…ng of configuration on NameStep
  • Loading branch information
skublik committed Nov 8, 2018
1 parent f3f2533 commit 680ca92
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
Expand Up @@ -220,7 +220,7 @@ public WebMarkupContainer getPanel(String panelId) {
return tabs;
}

private void updateConfigurationTabs() {
public void updateConfigurationTabs() {

TabbedPanel<ITab> tabbedPanel = getConfigurationTabbedPanel();
List<ITab> tabs = tabbedPanel.getTabs().getObject();
Expand Down
Expand Up @@ -499,5 +499,7 @@ public void applyState() {
if (parentPage.showSaveResultInPage(saved, result)) {
parentPage.showResult(result);
}

parentPage.getConfigurationStep().updateConfigurationTabs();
}
}
Expand Up @@ -87,6 +87,7 @@ public class PageResourceWizard extends PageAdminResources {

private final boolean configurationOnly;
private boolean readOnly;
private ConfigurationStep configurationStep;

public PageResourceWizard(@NotNull PageParameters parameters) {
getPageParameters().overwriteWith(parameters); // to be available in the methods called within this constructor as well
Expand Down Expand Up @@ -174,7 +175,8 @@ private void initLayout() {
if (!configurationOnly) {
wizardModel.add(new NameStep(modelRaw, this));
}
wizardModel.add(new ConfigurationStep(modelNoFetch, this));
configurationStep = new ConfigurationStep(modelNoFetch, this);
wizardModel.add(configurationStep);
if (!configurationOnly) {
wizardModel.add(new SchemaStep(modelFull, this));
wizardModel.add(new SchemaHandlingStep(modelFull, this));
Expand All @@ -196,6 +198,10 @@ public void refreshIssues(@Nullable AjaxRequestTarget target) {
target.add(wizard.getButtons());
}
}

public ConfigurationStep getConfigurationStep() {
return configurationStep;
}

@NotNull public ResourceWizardIssuesModel getIssuesModel() {
return issuesModel;
Expand Down

0 comments on commit 680ca92

Please sign in to comment.