Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
import org.jspecify.annotations.Nullable;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.vaadin.experimental.FeatureFlags;
import com.vaadin.flow.component.AttachEvent;
import com.vaadin.flow.component.Component;
import com.vaadin.flow.component.ComponentUtil;
Expand Down Expand Up @@ -55,9 +54,6 @@
/**
* Breadcrumbs is a component for displaying a navigation trail that shows the
* user's location within a hierarchy of pages.
* <p>
* This component is experimental and needs to be enabled with the
* {@code com.vaadin.experimental.breadcrumbsComponent} feature flag.
*
* @author Vaadin Ltd
* @since 25.2
Expand Down Expand Up @@ -267,8 +263,6 @@ private boolean hasChildrenBinding() {
@Override
protected void onAttach(AttachEvent attachEvent) {
super.onAttach(attachEvent);
checkFeatureFlag(attachEvent.getUI());

if (mode == Mode.ROUTER) {
registerNavigationListener(attachEvent.getUI());
}
Expand Down Expand Up @@ -434,15 +428,6 @@ private String resolveTitle(RouteReference reference,
.orElse("");
}

private void checkFeatureFlag(UI ui) {
FeatureFlags featureFlags = FeatureFlags
.get(ui.getSession().getService().getContext());
if (!featureFlags.isEnabled(
BreadcrumbsFeatureFlagProvider.BREADCRUMBS_COMPONENT)) {
throw new ExperimentalFeatureException();
}
}

/**
* Gets the internationalization object previously set for this component.
* <p>
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
import com.vaadin.flow.component.UI;
import com.vaadin.flow.component.breadcrumbs.Breadcrumbs;
import com.vaadin.flow.component.breadcrumbs.Breadcrumbs.Mode;
import com.vaadin.flow.component.breadcrumbs.BreadcrumbsFeatureFlagProvider;
import com.vaadin.flow.component.breadcrumbs.BreadcrumbsItem;
import com.vaadin.flow.component.html.Div;
import com.vaadin.flow.router.AfterNavigationEvent;
Expand All @@ -51,18 +50,13 @@
import com.vaadin.flow.server.VaadinService;
import com.vaadin.flow.server.startup.ApplicationRouteRegistry;
import com.vaadin.flow.signals.local.ValueSignal;
import com.vaadin.tests.EnableFeatureFlagExtension;
import com.vaadin.tests.MockUIExtension;

class BreadcrumbsModeTest {

@RegisterExtension
MockUIExtension ui = new MockUIExtension();

@RegisterExtension
EnableFeatureFlagExtension featureFlagExtension = new EnableFeatureFlagExtension(
BreadcrumbsFeatureFlagProvider.BREADCRUMBS_COMPONENT);

@AfterEach
void clearCurrentService() {
// installRouter sets the current service for title resolution; clear it
Expand Down

This file was deleted.

Loading