Skip to content

Commit

Permalink
Correctly show whether a parameter is from a parent process or from t…
Browse files Browse the repository at this point in the history
…he user
  • Loading branch information
m-mohr committed Dec 8, 2022
1 parent 7825712 commit 0ad2643
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/Page.vue
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,8 @@ export default {
async showData(data, title) {
this.showModal('DataModal', {data, title});
},
showProcessParameter(parameter, udp = true) {
this.showModal('ProcessParameterModal', {parameter,udp});
showProcessParameter(parameter, origin) {
this.showModal('ProcessParameterModal', {parameter, origin});
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/VisualEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
@error="errorHandler"
@showProcess="(id, namespace) => broadcast('showProcess', {id, namespace})"
@showCollection="id => broadcast('showCollection', id)"
@showParameter="param => broadcast('showProcessParameter', param)"
@showParameter="(param, origin) => broadcast('showProcessParameter', param, origin)"
@editParameter="editParameter"
@editArguments="openArgumentEditor"
@compactMode="compact => this.compactMode = compact"
Expand Down
10 changes: 5 additions & 5 deletions src/components/modals/ProcessParameterModal.vue
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<template>
<Modal width="50%" :title="title" @closed="$emit('closed')">
<div class="processParameterModal">
<p class="message info" v-if="udp">
<p class="message info" v-if="origin === 'schema'">
<i class="fas fa-info-circle"></i>
<span>
This is a parameter for a user-defined process.
It is a value made available by the parent entity (usually another process or a secondary web service) that is executing this processes for further use.
See below for details about this parameter:
</span>
</span>
</p>
<ProcessParameter :parameter="parameter" />
</div>
Expand All @@ -28,9 +28,9 @@ export default {
parameter: {
type: Object
},
udp: {
type: Boolean,
default: false
origin: {
type: String,
default: 'schema'
}
},
computed: {
Expand Down

0 comments on commit 0ad2643

Please sign in to comment.