Skip to content

Commit 5aa5fb4

Browse files
committed
feat: add flga
1 parent 60e3bdf commit 5aa5fb4

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

api/router.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,8 +571,9 @@ func getSystemInfo(w http.ResponseWriter, r *http.Request) {
571571
"auth_methods": authMethods,
572572

573573
"premium_features": map[string]bool{
574-
"project_runners": true,
574+
"project_runners": false,
575575
"terraform_backend": false,
576+
"task_result": false,
576577
},
577578

578579
"git_client": util.Config.GitClientId,

web/src/components/AnsibleStageView.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
text
66
color="hsl(348deg, 86%, 61%)"
77
style="border-radius: 0;"
8+
v-if="!premiumFeatures.task_result"
89
>
910
<span class="mr-2">
1011
Terraform/OpenTofu HTTP backend available only in <b>PRO</b> version.
@@ -131,6 +132,7 @@ export default {
131132
props: {
132133
projectId: Number,
133134
taskId: Number,
135+
premiumFeatures: Object,
134136
},
135137
136138
mixins: [ProjectMixin],

web/src/components/TaskLogView.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,11 @@
110110
<div v-else-if="tab === 2">
111111
<v-divider style="margin-top: -1px;" />
112112

113-
<AnsibleStageView :project-id="projectId" :task-id="itemId" />
113+
<AnsibleStageView
114+
:premium-features="systemInfo.premium_features"
115+
:project-id="projectId"
116+
:task-id="itemId"
117+
/>
114118
</div>
115119

116120
</div>

0 commit comments

Comments
 (0)