diff --git a/cypress/integration/assessments.spec.ts b/cypress/integration/assessments.spec.ts index fead5caa..44ac6b96 100644 --- a/cypress/integration/assessments.spec.ts +++ b/cypress/integration/assessments.spec.ts @@ -1,5 +1,5 @@ /* - * Copyright (C) 2022 StApps + * Copyright (C) 2023 StApps * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the Free * Software Foundation, version 3. @@ -32,10 +32,6 @@ describe('assessments', function () { cy.visit('/assessments/detail/02f065a6-6c02-58ab-97d9-a3febdbc91a1?token=mock'); cy.get('.breadcrumb-collapsed').click(); - cy.get('ion-popover').within(() => { - cy.get('ion-item').should('have.length', 3); - cy.get('ion-item').first().should('contain', 'Basismodule'); - cy.get('ion-item').last().should('contain', 'Modellierung'); - }); + cy.get('ion-breadcrumb').should('have.length', 3); }); }); diff --git a/src/app/modules/data/detail/data-path.component.ts b/src/app/modules/data/detail/data-path.component.ts index 6595d6a1..04749168 100644 --- a/src/app/modules/data/detail/data-path.component.ts +++ b/src/app/modules/data/detail/data-path.component.ts @@ -1,5 +1,5 @@ /* - * Copyright (C) 2022 StApps + * Copyright (C) 2023 StApps * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the Free * Software Foundation, version 3. @@ -35,6 +35,8 @@ export class DataPathComponent implements OnInit, OnDestroy { @Input() autoRouting = true; + @Input() maxItems = 2; + @Input() set item(item: SCThings) { // eslint-disable-next-line unicorn/prefer-ternary if (item.type === SCThingType.Catalog && item.superCatalogs) { diff --git a/src/app/modules/data/detail/data-path.html b/src/app/modules/data/detail/data-path.html index 533958e8..5de6dc48 100644 --- a/src/app/modules/data/detail/data-path.html +++ b/src/app/modules/data/detail/data-path.html @@ -1,5 +1,5 @@