Skip to content

Commit

Permalink
Fix analog default election mode (#3009)
Browse files Browse the repository at this point in the history
* Fix missing css vars in darkmode
  • Loading branch information
bastianjoel authored Nov 13, 2023
1 parent bcc71f1 commit bf78a20
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export class TopicPollService extends PollService {
const poll: Partial<Poll> = {
title: this.translate.instant(`Vote`),
onehundred_percent_base: this.defaultPercentBase,
entitled_group_ids: Object.values(this.defaultGroupIds),
entitled_group_ids: Object.values(this.defaultGroupIds ?? []),
pollmethod: this.defaultPollMethod,
type: this.defaultPollType,
backend: PollBackendDurationType.FAST
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export class AssignmentPollService extends PollService {
const poll: Partial<Poll> = {
title: this.translate.instant(`Ballot`),
onehundred_percent_base: this.defaultPercentBase,
entitled_group_ids: Object.values(this.defaultGroupIds),
entitled_group_ids: Object.values(this.defaultGroupIds ?? []),
pollmethod: this.defaultPollMethod,
type: this.isElectronicVotingEnabled ? this.defaultPollType : PollType.Analog
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export class MotionPollService extends PollService {
const poll: Partial<Poll> = {
title: this.translate.instant(`Vote`),
onehundred_percent_base: this.defaultPercentBase,
entitled_group_ids: Object.values(this.defaultGroupIds),
entitled_group_ids: Object.values(this.defaultGroupIds ?? []),
type: this.isElectronicVotingEnabled ? this.defaultPollType : PollType.Analog,
pollmethod: PollMethod.YNA
};
Expand Down
3 changes: 2 additions & 1 deletion client/src/assets/styles/theme-styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@
/** Global component style definition */
@import 'global-components-style.scss';

@include mat.all-component-themes($openslides-light-theme);

.openslides-light-theme {
/*TODO(mdc-migration): Remove all-legacy-component-themes once all legacy components are migrated */
@include mat.all-legacy-component-themes($openslides-light-theme);
@include mat.all-component-themes($openslides-light-theme);
@include os-component-themes($openslides-light-theme);
}

Expand Down

0 comments on commit bf78a20

Please sign in to comment.