Made it possible to choose apps properly on the open source version
This commit is contained in:
@@ -2,7 +2,7 @@ module main
|
|||||||
|
|
||||||
go 1.16
|
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/kin-openapi => ../../../../git/kin-openapi
|
||||||
//replace github.com/frikky/go-elasticsearch => ../../../../git/go-elasticsearch
|
//replace github.com/frikky/go-elasticsearch => ../../../../git/go-elasticsearch
|
||||||
|
|||||||
@@ -616,6 +616,8 @@ const Framework = (props) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const setFrameworkItem = (data) => {
|
const setFrameworkItem = (data) => {
|
||||||
|
console.log("UPLOAD: ", data)
|
||||||
|
|
||||||
fetch(globalUrl + "/api/v1/apps/frameworkConfiguration", {
|
fetch(globalUrl + "/api/v1/apps/frameworkConfiguration", {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
headers: {
|
headers: {
|
||||||
@@ -669,8 +671,12 @@ const Framework = (props) => {
|
|||||||
"type": discoveryData.id,
|
"type": discoveryData.id,
|
||||||
"name": newSelectedApp.name,
|
"name": newSelectedApp.name,
|
||||||
"id": newSelectedApp.objectID,
|
"id": newSelectedApp.objectID,
|
||||||
|
"large_image": newSelectedApp.image_url,
|
||||||
|
"description": newSelectedApp.description,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
console.log("APP: ", newSelectedApp)
|
||||||
|
|
||||||
const foundelement = cy.getElementById(discoveryData.id)
|
const foundelement = cy.getElementById(discoveryData.id)
|
||||||
if (foundelement !== undefined && foundelement !== null) {
|
if (foundelement !== undefined && foundelement !== null) {
|
||||||
foundelement.data("large_image", newSelectedApp.image_url)
|
foundelement.data("large_image", newSelectedApp.image_url)
|
||||||
|
|||||||
Reference in New Issue
Block a user