Made it possible to choose apps properly on the open source version

This commit is contained in:
frikky
2022-07-22 18:40:43 +02:00
parent 5a7fff2263
commit 37bec8552e
2 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ module main
go 1.16
//replace github.com/shuffle/shuffle-shared => ../../../shuffle-shared
replace github.com/shuffle/shuffle-shared => ../../../shuffle-shared
//replace github.com/frikky/kin-openapi => ../../../../git/kin-openapi
//replace github.com/frikky/go-elasticsearch => ../../../../git/go-elasticsearch
@@ -616,6 +616,8 @@ const Framework = (props) => {
}
const setFrameworkItem = (data) => {
console.log("UPLOAD: ", data)
fetch(globalUrl + "/api/v1/apps/frameworkConfiguration", {
method: "POST",
headers: {
@@ -669,8 +671,12 @@ const Framework = (props) => {
"type": discoveryData.id,
"name": newSelectedApp.name,
"id": newSelectedApp.objectID,
"large_image": newSelectedApp.image_url,
"description": newSelectedApp.description,
}
console.log("APP: ", newSelectedApp)
const foundelement = cy.getElementById(discoveryData.id)
if (foundelement !== undefined && foundelement !== null) {
foundelement.data("large_image", newSelectedApp.image_url)