Skip to content
Snippets Groups Projects
Commit e6d2c28b authored by Sam Kagan's avatar Sam Kagan
Browse files

Merge branch 'ws1409-auto_pims_split' into 'release/2.4.3-rc1'

Added automaticPimsSplit setting to UI

See merge request !19
parents 308e7c22 b4ab0a01
No related branches found
No related tags found
2 merge requests!25Merge 2.4.3 UI to main,!19Added automaticPimsSplit setting to UI
......@@ -2,6 +2,7 @@ export class Setting {
id: string;
allowJobDeletion: boolean;
allowProductDeletion: boolean;
allowAutomaticPims: boolean;
}
export class QueueSetting {
......
......@@ -20,10 +20,10 @@ export class SettingsService {
}));
}
public setSettings(settings): Observable<Setting> {
public setSettings(settings: Setting): Observable<Setting> {
return this.http.post<Setting>(this.configService.config.url + '/services/settings', settings, {observe: "response"}).pipe(
map(response => {
return settings;
return response.body;
}));
}
......
......@@ -39,6 +39,23 @@
<h5 class="m-0">Allow Product Deletion?</h5>
<p>Allows product deletion through this interface</p>
</div>
<div class="col-1"></div>
<div class="col-auto">
<div class="btn-group">
<button type="button" class="btn btn-lg" (click)="updateSettings('allowAutomaticPims', true)"
[ngClass]="settings.allowAutomaticPims ? 'btn-success active' : 'btn-outline-success'">
Yes
</button>
<button type="button" class="btn btn-lg" (click)="updateSettings('allowAutomaticPims', false)"
[ngClass]="!settings.allowAutomaticPims ? 'btn-danger active' : 'btn-outline-danger'">
No
</button>
</div>
</div>
<div class="col">
<h5 class="m-0">Allow Automatic PIMs?</h5>
<p>Allows automatic PIMs-splitting on Quicklook-calibration ingestion through this interface</p>
</div>
</div>
</ng-container>
......
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