Fixed access right problems for app reloading

This commit is contained in:
frikky
2022-07-26 16:55:24 +02:00
parent 3d8665439a
commit 4c047e457c
5 changed files with 20 additions and 6 deletions
+1 -1
View File
@@ -59,7 +59,7 @@ SHUFFLE_BASE_IMAGE_TAG_SUFFIX="-1.0.0"
SHUFFLE_CONTAINER_AUTO_CLEANUP=false
SHUFFLE_ELASTIC=true
SHUFFLE_LOGS_DISABLED=false
SHUFFLE_CHAT_DISABLED=false
SHUFFLE_CHAT_DISABLED=false # Controls support chat
SHUFFLE_RERUN_SCHEDULE=300
# DATABASE CONFIGURATIONS
+4
View File
@@ -1,5 +1,9 @@
# This can be done in the dockerpush workflow itself
docker pull frikky/shuffle-backend:nightly
docker pull frikky/shuffle-frontend:nightly
docker tag frikky/shuffle-backend:nightly ghcr.io/frikky/shuffle-backend:nightly
docker tag frikky/shuffle-frontend:nightly ghcr.io/frikky/shuffle-frontend:nightly
docker push ghcr.io/frikky/shuffle-backend:nightly
docker push ghcr.io/frikky/shuffle-frontend:nightly
+7 -2
View File
@@ -21,10 +21,11 @@ import {
} from '@material-ui/core';
import WorkflowPaper from "../components/WorkflowPaper.jsx"
import WorkflowPaperNew from "../components/WorkflowPaperNew.jsx"
const searchClient = algoliasearch("JNSS5CFDZZ", "db08e40265e2941b9a7d8f644b6e5240")
const AppGrid = props => {
const { maxRows, showName, showSuggestion, isMobile, globalUrl, parsedXs } = props
const { maxRows, showName, showSuggestion, isMobile, globalUrl, parsedXs, alternativeView, } = props
const isCloud =
window.location.host === "localhost:3002" ||
@@ -241,7 +242,11 @@ const AppGrid = props => {
return (
<Zoom key={index} in={true} style={{ transitionDelay: `${workflowDelay}ms` }}>
<Grid item xs={xs} style={{ padding: "12px 10px 12px 10px" }}>
<WorkflowPaper key={index} data={data} />
{alternativeView === true ?
<WorkflowPaperNew key={index} data={data} />
:
<WorkflowPaper key={index} data={data} />
}
</Grid>
</Zoom>
)
+3 -2
View File
@@ -1019,7 +1019,7 @@ const Apps = (props) => {
{activateButton}
{editNewButton}
{(props.userdata !== undefined &&
(props.userdata.role === "admin" ||
(props.userdata.admin === "true" ||
props.userdata.id === selectedApp.owner ||
selectedApp.owner === ""
)) || !selectedApp.generated ? (
@@ -1408,6 +1408,7 @@ const Apps = (props) => {
}, [appValidation, isDropzone]);
var appDelay = -75
const appView = isLoggedIn ? (
<Dropzone
style={{ width: viewWidth * 2 + 20, margin: "auto", padding: 20 }}
@@ -1481,7 +1482,7 @@ const Apps = (props) => {
</Tooltip>
)}
{userdata === undefined || userdata === null || userdata.role !== "admin" ? null :
{userdata === undefined || userdata === null || userdata.admin === "false" ? null :
<Tooltip
title={"Download from Github"}
style={{ marginTop: "28px", width: "100%" }}
+5 -1
View File
@@ -151,7 +151,10 @@ const Search = (props) => {
<AppGrid maxRows={3} showSuggestion={true} globalUrl={globalUrl} isMobile={isMobile} userdata={userdata} />
:
curTab === 1 ?
<WorkflowGrid maxRows={3} showSuggestion={true} globalUrl={globalUrl} isMobile={isMobile} userdata={userdata} />
window.location.pathname === "/search" ?
<WorkflowGrid maxRows={3} showSuggestion={true} globalUrl={globalUrl} isMobile={isMobile} userdata={userdata} />
:
<WorkflowGrid maxRows={3} showSuggestion={true} globalUrl={globalUrl} isMobile={isMobile} userdata={userdata} />
:
curTab === 2 ?
<DocsGrid maxRows={6} parsedXs={12} showSuggestion={true} globalUrl={globalUrl} isMobile={isMobile} userdata={userdata} />
@@ -162,6 +165,7 @@ const Search = (props) => {
null}
</div>
</div>
//{/*alternativeView={true} />*/}
const loadedCheck = isLoaded ?
<div>