fix: download events should respect selection

fix: show indeterminate state for tree node when child is indeterminate
This commit is contained in:
Thea Schöbl
2022-10-10 12:44:56 +00:00
committed by Rainer Killinger
parent ec511fb8f4
commit 28fbfef18c
3 changed files with 6 additions and 2 deletions

View File

@@ -47,6 +47,7 @@ describe('dashboard', async function () {
}), }),
); );
cy.wait('@search'); cy.wait('@search');
cy.visit('/dashboard');
cy.get('.schedule-item-button').should('contain', 'UNIcert (Test)'); cy.get('.schedule-item-button').should('contain', 'UNIcert (Test)');
}); });
}); });

View File

@@ -122,7 +122,10 @@ export class AddEventActionChipComponent implements OnDestroy {
dismissAction: () => { dismissAction: () => {
modal.dismiss(); modal.dismiss();
}, },
dateSeries: this.selection.items, dateSeries: this.selection.selection.children
.flatMap(it => it.children)
.filter(it => it.selected)
.map(it => it.item),
}, },
}); });

View File

@@ -19,7 +19,7 @@ import {SCDateSeries} from '@openstapps/core';
export enum Selection { export enum Selection {
ON = 2, ON = 2,
PARTIAL = 1, PARTIAL = 1,
OFF = 1, OFF = 0,
} }
/** /**