Skip to content

Vote detail view#6251

Open
Elblinator wants to merge 31 commits into
OpenSlides:feature/votefrom
Elblinator:new-vote-detail
Open

Vote detail view#6251
Elblinator wants to merge 31 commits into
OpenSlides:feature/votefrom
Elblinator:new-vote-detail

Conversation

@Elblinator

Copy link
Copy Markdown
Member

No description provided.

@Elblinator Elblinator self-assigned this May 27, 2026
@Elblinator Elblinator changed the title Navigate to correct place Vote detail view May 27, 2026
@Elblinator Elblinator added this to the 4.4 milestone Jun 4, 2026
@Elblinator Elblinator requested a review from bastianjoel June 12, 2026 10:12
@Elblinator Elblinator assigned bastianjoel and unassigned Elblinator Jun 12, 2026
@Elblinator Elblinator marked this pull request as ready for review June 12, 2026 10:13
@Elblinator

Copy link
Copy Markdown
Member Author

If the poll list is opened first or and detail poll, then if any other poll detail is opened the list appears empty even while the votesDataSubject is correctly filled. I do not know why. Did I implem,ent something wrong or is anything missing @bastianjoel

pathMatch: `full`,
loadChildren: () => import(`./modules/poll-list/poll-list.module`).then(m => m.PollListModule)
loadComponent: () =>
import('../../modules/poll/components/poll-list/poll-list.component').then(m => m.PollListComponent)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would prefer to have the poll list and detail related components (poll-detail, poll-entitled-users, poll-list, poll-single-votes) in app/site/pages/meetings/pages/polls/components. They are not used within other components and therefore do not really fit into the poll module.


@Input()
public set votesDataObservable(observable: Observable<BaseVoteData[]>) {
public set votesDataObservabl(observable: Observable<BaseVoteData[]>) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
public set votesDataObservabl(observable: Observable<BaseVoteData[]>) {
public set votesDataObservable(observable: Observable<BaseVoteData[]>) {

Comment on lines +79 to +82
public isDetailLink = computed(() => {
return window.location.pathname === this.getDetailLink();
});

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would prefer an input for this.


public constructor() {
super();
super.setTitle(`Singular poll`);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Translation missing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants