Skip to content

Commit

Permalink
fix(ui): fix multiple issues on blueprints
Browse files Browse the repository at this point in the history
  • Loading branch information
fhussonnois committed Jan 23, 2025
1 parent 4bb2fd5 commit 2e18c29
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions ui/src/components/flows/blueprints/BlueprintDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@
</div>

<section v-bind="$attrs" :class="{'container': !embed}" class="blueprint-container" v-loading="!blueprint">
<el-card v-if="blueprint">
<el-card v-if="blueprint && kind === 'flow'">
<div class="embedded-topology" v-if="flowGraph">
<low-code-editor
v-if="flowGraph"
:flow-id="parsedFlow.id"
:namespace="parsedFlow.namespace"
:flow-graph="flowGraph"
:source="blueprint.flow"
:source="blueprint.source"
:view-type="embed ? 'source-blueprints' : 'blueprints'"
is-read-only
/>
Expand All @@ -52,7 +52,7 @@
:navbar="false"
>
<template #absolute>
<copy-to-clipboard class="position-absolute" :text="blueprint.flow" />
<copy-to-clipboard class="position-absolute" :text="blueprint.source" />
</template>
</editor>
</el-card>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@
}
return this.$store
.dispatch("blueprints/getBlueprintsForQuery", {type: this.blueprintType, kind: this.kind(), ...query})
.dispatch("blueprints/getBlueprintsForQuery", {type: this.blueprintType, kind: this.kind(), params: query})
.then(data => {
// Handle switch tab while fetching data
if (this.embedFriendlyBlueprintBaseUri === beforeLoadBlueprintBaseUri) {
Expand Down
2 changes: 1 addition & 1 deletion ui/src/routes/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default [
{name: "taskruns/list", path: "/:tenant?/taskruns", component: () => import("../components/taskruns/TaskRuns.vue")},

//Blueprints
{name: "blueprints", path: "/:tenant?/blueprints/:kind", component: () => import("override/components/flows/blueprints/Blueprints.vue"), props: {topNavbar: false}},
{name: "blueprints", path: "/:tenant?/blueprints/:kind", component: () => import("override/components/flows/blueprints/Blueprints.vue"), props: true},
{name: "blueprints/view", path: "/:tenant?/blueprints/:kind/:blueprintId", component: () => import("../components/flows/blueprints/BlueprintDetail.vue"), props: true},

//Documentation
Expand Down

0 comments on commit 2e18c29

Please sign in to comment.