Skip to content

Commit

Permalink
fix: add memory of which groups are installed across countries
Browse files Browse the repository at this point in the history
  • Loading branch information
squigglybob committed Dec 20, 2024
1 parent 4857503 commit beb6ad0
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions dt-core/admin/components/setup-wizard-people-groups.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ export class SetupWizardPeopleGroups extends OpenLitElement {
? false
: true;
const peopleGroupsInstalled = this.peopleGroups.filter(
({ installed }) => !installed,
({ installed, ROP3 }) =>
!installed && !this.peopleGroupsInstalled.includes(ROP3),
);

peopleGroupsInstalled.forEach((group) => {
Expand Down Expand Up @@ -107,6 +108,7 @@ export class SetupWizardPeopleGroups extends OpenLitElement {

peopleGroup.installing = false;
peopleGroup.installed = true;
this.peopleGroupsInstalled.push(peopleGroup.ROP3);
this.requestUpdate();
}
wait(time) {
Expand Down Expand Up @@ -177,7 +179,10 @@ export class SetupWizardPeopleGroups extends OpenLitElement {
let action = 'Added';
if (people.installing) {
action = html`<span class="spinner"></span>`;
} else if (!people.installed) {
} else if (
!people.installed &&
!this.peopleGroupsInstalled.includes(people.ROP3)
) {
action = html`<input
type="checkbox"
.checked=${people.selected}
Expand Down

0 comments on commit beb6ad0

Please sign in to comment.