Skip to content

Commit

Permalink
remove solos from edits
Browse files Browse the repository at this point in the history
  • Loading branch information
tomcoombs2000 committed Sep 23, 2024
1 parent 6340e37 commit 4af9bb7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
8 changes: 6 additions & 2 deletions src/views/admin/controllers/Edit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export default {
miagnd: false,
app: false,
twr: false,
gnd: false,
gnd: false
//dels: false,
//gnds: false,
//twrs: false,
Expand Down Expand Up @@ -178,7 +178,11 @@ export default {
oi: this.controller.oi,
vis: this.controller.vis,
};
this.controller.certifications.forEach(cert => this.form.certs[cert.code] = true);
this.controller.certifications.forEach(cert => {
if (!cert.code.endsWith('s')) {
this.form.certs[cert.code] = true;}
});
this.controller.roles.forEach(role => this.form.roles[role.code] = true);
this.usedOi = (await zabApi.get(`/controller/oi`)).data.data;
},
Expand Down
7 changes: 5 additions & 2 deletions src/views/instructor/controllers/Edit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export default {
miagnd: false,
app: false,
twr: false,
gnd: false,
gnd: false
//dels: false,
//gnds: false,
//twrs: false,
Expand Down Expand Up @@ -158,7 +158,10 @@ export default {
vis: this.controller.vis,
};
this.controller.certifications.forEach(cert => this.form.certs[cert.code] = true);
this.controller.certifications.forEach(cert => {
if (!cert.code.endsWith('s')) {
this.form.certs[cert.code] = true;}
}); // this.controller.certifications.forEach(cert => this.form.certs[cert.code] = true);
this.controller.roles.forEach(role => this.form.roles[role.code] = true);
this.usedOi = (await zabApi.get(`/controller/oi`)).data.data;
},
Expand Down

0 comments on commit 4af9bb7

Please sign in to comment.