* add deploy button * disable control if inactive * add cases (cherry picked from commit 91b2a8c8aab546221db8da8eaed22bca78c4d91f) Co-authored-by: Tristan Timblin <ttimblin@fiskerinc.com>
This commit is contained in:
@@ -87,6 +87,18 @@ const updatesAPI = {
|
||||
.catch(errorHandler);
|
||||
},
|
||||
|
||||
deployCarUpdate: async (id, token) => {
|
||||
return fetch(`${API_ENDPOINT}/carupdate/${id}/deploy`, {
|
||||
method: "POST",
|
||||
headers: Object.assign(
|
||||
{ "Content-Type": "application/json" },
|
||||
getAuthHeaderOptions(token)
|
||||
),
|
||||
})
|
||||
.then(fetchRespHandler)
|
||||
.catch(errorHandler);
|
||||
},
|
||||
|
||||
getSUMSVersions: async (token) => {
|
||||
return fetch(`${API_ENDPOINT}/manifest/sums`, {
|
||||
method: "GET",
|
||||
|
||||
Reference in New Issue
Block a user