Skip to content

Commit c5b56de

Browse files
fix: application button question
1 parent dc424b3 commit c5b56de

File tree

1 file changed

+27
-21
lines changed

1 file changed

+27
-21
lines changed

ui/src/views/application-overview/index.vue

Lines changed: 27 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,18 @@
7171
</el-button>
7272
</div>
7373
<div>
74-
<el-button :disabled="!accessToken?.is_active" type="primary">
75-
<a v-if="accessToken?.is_active" :href="shareUrl" target="_blank">
76-
{{ $t('views.applicationOverview.appInfo.demo') }}
77-
</a>
78-
<span v-else> {{ $t('views.applicationOverview.appInfo.demo') }}</span>
74+
<el-button
75+
v-if="accessToken?.is_active"
76+
:disabled="!accessToken?.is_active"
77+
type="primary"
78+
tag="a"
79+
:href="shareUrl"
80+
target="_blank"
81+
>
82+
{{ $t('views.applicationOverview.appInfo.demo') }}
83+
</el-button>
84+
<el-button v-else :disabled="!accessToken?.is_active" type="primary">
85+
{{ $t('views.applicationOverview.appInfo.demo') }}
7986
</el-button>
8087
<el-button :disabled="!accessToken?.is_active" @click="openDialog">
8188
{{ $t('views.applicationOverview.appInfo.embedThirdParty') }}
@@ -353,23 +360,22 @@ function getDetail() {
353360
?.filter((v: any) => v.id === 'base-node')
354361
.map((v: any) => {
355362
apiInputParams.value = v.properties.api_input_field_list
356-
? v.properties.api_input_field_list
357-
.map((v: any) => {
358-
return {
359-
name: v.variable,
360-
value: v.default_value
361-
}
362-
})
363+
? v.properties.api_input_field_list.map((v: any) => {
364+
return {
365+
name: v.variable,
366+
value: v.default_value
367+
}
368+
})
363369
: v.properties.input_field_list
364-
? v.properties.input_field_list
365-
.filter((v: any) => v.assignment_method === 'api_input')
366-
.map((v: any) => {
367-
return {
368-
name: v.variable,
369-
value: v.default_value
370-
}
371-
})
372-
: []
370+
? v.properties.input_field_list
371+
.filter((v: any) => v.assignment_method === 'api_input')
372+
.map((v: any) => {
373+
return {
374+
name: v.variable,
375+
value: v.default_value
376+
}
377+
})
378+
: []
373379
})
374380
})
375381
}

0 commit comments

Comments
 (0)