Skip to content
Snippets Groups Projects
Verified Commit d92eaf72 authored by Damien's avatar Damien
Browse files

[FEAT] #221 Hide basket pages

parent 53a4e9ed
No related branches found
No related tags found
No related merge requests found
...@@ -13,13 +13,6 @@ ...@@ -13,13 +13,6 @@
[(ngModel)]="data.action.used_in_basketlist">{{lang.usedInBasketlist}}</mat-checkbox> [(ngModel)]="data.action.used_in_basketlist">{{lang.usedInBasketlist}}</mat-checkbox>
</div> </div>
</div> </div>
<mat-form-field style="margin-top:5px;">
<mat-select id="actionPages" name="actionPages" placeholder="{{lang.resultPages}}" [(ngModel)]="data.group.result_page">
<mat-option *ngFor="let page of data.pages" [value]="page.id">
{{page.label}}
</mat-option>
</mat-select>
</mat-form-field>
<mat-tab-group> <mat-tab-group>
<mat-tab *ngIf="data.action.keyword == 'redirect'||data.action.keyword == 'indexing'"> <mat-tab *ngIf="data.action.keyword == 'redirect'||data.action.keyword == 'indexing'">
<ng-template mat-tab-label *ngIf="data.action.keyword == 'redirect'"> <ng-template mat-tab-label *ngIf="data.action.keyword == 'redirect'">
......
...@@ -265,12 +265,15 @@ export class BasketAdministrationComponent implements OnInit { ...@@ -265,12 +265,15 @@ export class BasketAdministrationComponent implements OnInit {
styles: [".mat-dialog-content{height: 65vh;}"] styles: [".mat-dialog-content{height: 65vh;}"]
}) })
export class BasketAdministrationSettingsModalComponent extends AutoCompletePlugin { export class BasketAdministrationSettingsModalComponent extends AutoCompletePlugin {
lang: any = LANG;
allEntities: any[] = []; lang : any = LANG;
statuses: any; allEntities : any[] = [];
statuses : any;
constructor(public http: HttpClient, @Inject(MAT_DIALOG_DATA) public data: any, public dialogRef: MatDialogRef<BasketAdministrationSettingsModalComponent>) { constructor(public http: HttpClient, @Inject(MAT_DIALOG_DATA) public data: any, public dialogRef: MatDialogRef<BasketAdministrationSettingsModalComponent>) {
super(http, ['users']); super(http, ['users']);
} }
ngOnInit(): void { ngOnInit(): void {
this.http.get(this.coreUrl + "rest/entities") this.http.get(this.coreUrl + "rest/entities")
.subscribe((entities: any) => { .subscribe((entities: any) => {
...@@ -333,7 +336,7 @@ export class BasketAdministrationSettingsModalComponent extends AutoCompletePlug ...@@ -333,7 +336,7 @@ export class BasketAdministrationSettingsModalComponent extends AutoCompletePlug
}); });
}, () => { }, () => {
location.href = "index.php"; location.href = "index.php";
}) });
this.http.get(this.coreUrl + 'rest/statuses') this.http.get(this.coreUrl + 'rest/statuses')
.subscribe((data: any) => { .subscribe((data: any) => {
this.statuses = data.statuses; this.statuses = data.statuses;
......
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