[plugins-functionality | DONE | CHANGED ] create validateEnabledPage.component.ts include it in manage pages

This commit is contained in:
argirok 2024-06-10 09:03:15 +03:00
parent bb08cacc3c
commit 9db0940697
3 changed files with 2 additions and 5 deletions

View File

@ -34,7 +34,7 @@
</div>
<form *ngIf="!showLoading" [formGroup]="myForm">
<div class="uk-grid uk-child-width-1-2">
<div *ngIf="placementsOptions.length > 0" input [formInput]="myForm.get('placement')"
<div *ngIf="placementsOptions.length > 1 && myForm.get('placement').value" input [formInput]="myForm.get('placement')"
placeholder="Select placement" [options]="placementsOptions" type="select"></div>
<div input [formInput]="myForm.get('order')" placeholder="Select order" [options]="orderOptions" type="select"></div>
</div>

View File

@ -86,7 +86,7 @@
</div>
</aside>
<div page-content [fullWidth]="true" >
<div page-content [fullWidth]="true" class="uk-width-1-1">
<div inner>
<div> <!--class="uk-section uk-section-small uk-position-relative" style="min-height: 60vh">-->

View File

@ -187,13 +187,10 @@ export class PluginsComponent implements OnInit {
return a.plugin.order - b.plugin.order;
})
}
console.log(availablePlacements)
if (availablePlacements.length == 1) {
this.selectedPlacementView = availablePlacements[0];
this.sinlgePlacementAvailable = true
}
console.log(availablePlacements)
this.showLoading = false;
},
error => this.handleError('System error retrieving plugins', error)));