Skip to content
Snippets Groups Projects
Commit abf8f209 authored by Alex ORLUC's avatar Alex ORLUC
Browse files

FEAT #14408 TIME 0:15 remove disabled options when default action

parent f4394168
No related branches found
No related tags found
No related merge requests found
......@@ -6,12 +6,12 @@
<form #settingGroupsBasket="ngForm">
<div class="container-fluid">
<div class="col-md-6">
<mat-checkbox [disabled]="data.action.default_action_list == true" id="usedInActionPage"
<mat-checkbox id="usedInActionPage"
name="usedInActionPage" color="primary" [(ngModel)]="data.action.used_in_action_page">
{{lang.usedInActionPage}}</mat-checkbox>
</div>
<div class="col-md-6">
<mat-checkbox [disabled]="data.action.default_action_list == true" id="usedInBasketlist"
<mat-checkbox id="usedInBasketlist"
name="usedInBasketlist" color="primary" [(ngModel)]="data.action.used_in_basketlist">
{{lang.usedInBasketlist}}</mat-checkbox>
</div>
......
......@@ -221,13 +221,7 @@ export class BasketAdministrationComponent implements OnInit {
setDefaultAction(group: any, action: any) {
group.groupActions.forEach((tmpAction: any) => {
if (tmpAction.id === action.id) {
tmpAction.default_action_list = true;
tmpAction.used_in_action_page = true;
tmpAction.used_in_basketlist = true;
} else {
tmpAction.default_action_list = false;
}
tmpAction.default_action_list = tmpAction.id === action.id ? true : false;
});
this.addAction(group);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment