From 1318cbca7f0cf72e10d96fff1a1116ba073fe8dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thea=20Sch=C3=B6bl?= Date: Fri, 24 Feb 2023 11:34:41 +0000 Subject: [PATCH] fix: replace breadcrumb popover with simply expanding the breadcrumbs --- cypress/integration/assessments.spec.ts | 8 ++----- .../data/detail/data-path.component.ts | 4 +++- src/app/modules/data/detail/data-path.html | 18 +++------------ src/app/modules/data/detail/data-path.scss | 20 ++++++++--------- .../types/event/event-route-path.component.ts | 22 ++++++++++--------- .../data/types/event/event-route-path.html | 16 ++++++++------ 6 files changed, 39 insertions(+), 49 deletions(-) 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 @@