Skip to content

Commit

Permalink
Bugfix: Show filename if no label available
Browse files Browse the repository at this point in the history
  • Loading branch information
djuarezgf committed Dec 19, 2024
1 parent 719dc51 commit d0b091f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
8 changes: 3 additions & 5 deletions src/components/ProjectFieldRow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ export default class ProjectFieldRow extends Vue {
editedValue: string[] = [];
tempFieldValue: string[] = [];
isActionEnabled = false;
progress = 0;
Module = Module;
Action = Action;
showInputs = false;
Expand Down Expand Up @@ -316,9 +315,9 @@ export default class ProjectFieldRow extends Vue {
<div style="height:100%; display: flex; flex-direction: column;">
<div class="config-box-header">{{ step }}</div>
<div class="config-box-body">
<table class="config-box-table">
<table class="config-box-table" v-if="configurations">
<tr v-for="(param, key) in configurations.get(step)" :key="key">
<template v-if="key !=='customConfig'">
<template v-if="key !== 'customConfig'">
<td style="font-weight: bold">{{configLabel[key]}}:</td>
<td class="truncate-15" v-b-tooltip.hover :title="param">{{param}}</td>
</template>
Expand Down Expand Up @@ -445,8 +444,7 @@ export default class ProjectFieldRow extends Vue {
</span>
</div>
</div>
<div
v-else-if="tempFieldValue && tempFieldValue.length > 0 && tempFieldValue[0] && isEnvironmentVariables()"
<div v-else-if="tempFieldValue && tempFieldValue.length > 0 && tempFieldValue[0] && isEnvironmentVariables()"
style="display:flex; width:100%">
<div v-for="(pair, index) in tempFieldValue[0].split(';').filter(Boolean)" :key="index"
style="margin-right: 2%; display: inline;" class="btn btn-primary">
Expand Down
6 changes: 3 additions & 3 deletions src/components/ProjectView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -560,19 +560,19 @@ export default defineComponent({
this.initializeDataInCallback(Module.PROJECT_DOCUMENTS_MODULE, Action.EXISTS_VOTUM_ACTION, new Map(), async (result: boolean) => {
this.existsVotum = result;
if (this.existsVotum) {
this.initializeData(Module.PROJECT_DOCUMENTS_MODULE, Action.FETCH_VOTUM_DESCRIPTION_ACTION, new Map(), 'votumLabel');
this.initializeData(Module.PROJECT_DOCUMENTS_MODULE, Action.FETCH_VOTUM_DESCRIPTION_ACTION, new Map(), 'votumDescription');
}
}),
this.initializeDataInCallback(Module.PROJECT_DOCUMENTS_MODULE, Action.EXISTS_APPLICATION_FORM_ACTION, new Map(), async (result: boolean) => {
this.existsApplicationForm = result;
if (this.existsApplicationForm) {
this.initializeData(Module.PROJECT_DOCUMENTS_MODULE, Action.FETCH_APPLICATION_FORM_DESCRIPTION_ACTION, new Map(), 'applicationFormLabel');
this.initializeData(Module.PROJECT_DOCUMENTS_MODULE, Action.FETCH_APPLICATION_FORM_DESCRIPTION_ACTION, new Map(), 'applicationFormDescription');
}
}),
this.initializeDataInCallback(Module.PROJECT_DOCUMENTS_MODULE, Action.EXISTS_SCRIPT_ACTION, new Map(), async (result: boolean) => {
this.existsScript = result;
if (this.existsScript) {
this.initializeData(Module.PROJECT_DOCUMENTS_MODULE, Action.FETCH_SCRIPT_DESCRIPTION_ACTION, new Map(), 'scriptLabel');
this.initializeData(Module.PROJECT_DOCUMENTS_MODULE, Action.FETCH_SCRIPT_DESCRIPTION_ACTION, new Map(), 'scriptDescription');
}
}),
this.initializeData(Module.TOKEN_MANAGER_MODULE, Action.EXISTS_AUTHENTICATION_SCRIPT_ACTION, new Map(), 'existsAuthenticationScript'),
Expand Down

0 comments on commit d0b091f

Please sign in to comment.