mirror of
https://git.netzspielplatz.de/docker-multiarch/openwrt-firmware-selector.git
synced 2025-11-09 01:49:35 +00:00
Handle error codes for bad package selection
Handles 409 and 422 HTTP codes for bad package selection. Shows popup for appropriate error message and gives a link for build logs. Fixes #12 Fixes #8 Signed-off-by: Sudhanshu Gautam <me@sudhanshug.com>
This commit is contained in:
parent
5e3b827489
commit
acdb7741e8
6 changed files with 123 additions and 65 deletions
|
|
@ -13,17 +13,15 @@ class DataService {
|
|||
|
||||
getDevicePackages = (version, target, profile) => axios.get(base_api + 'packages_image?distro=openwrt&version=' + version.toLowerCase() + '&target=' + target + '&profile=' + profile.toLowerCase());
|
||||
|
||||
buildImage = (board, packages, target, version) => {
|
||||
return axios.post(base_api + 'build-request', {
|
||||
profile: board,
|
||||
board,
|
||||
defaults: '',
|
||||
distro: 'openwrt',
|
||||
packages,
|
||||
target,
|
||||
version,
|
||||
});
|
||||
};
|
||||
buildImage = (board, packages, target, version) => axios.post(base_api + 'build-request', {
|
||||
profile: board,
|
||||
board,
|
||||
defaults: '',
|
||||
distro: 'openwrt',
|
||||
packages,
|
||||
target,
|
||||
version,
|
||||
});
|
||||
|
||||
buildStatusCheck = (request_hash) => axios.get(base_api + 'build-request/' + request_hash);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue