Skip to content

Commit 84877e3

Browse files
authored
Merge pull request #6330 from FlowFuse/make-ha-more-discoverable
Add High Availability status display and edit link in `Instance Overview` page
2 parents 1aa2112 + 450319e commit 84877e3

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

frontend/src/pages/instance/Overview.vue

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,27 @@
9191
</div>
9292
</td>
9393
</tr>
94+
<tr class="border-b">
95+
<td class="font-medium">High Availability</td>
96+
<td class="py-2">
97+
<div class="flex">
98+
<StatusBadge
99+
v-if="isHA"
100+
class="forge-status-running hover:text-blue-600"
101+
status="Enabled"
102+
/>
103+
<StatusBadge
104+
v-else
105+
class="text-gray-400 hover:text-blue-600"
106+
status="Disabled"
107+
:text="!!features.ha ? 'Disabled' : 'Not Available'"
108+
/>
109+
<router-link v-if="canEditProject && !!features.ha" :to="{ name: 'instance-settings-ha' }" @click.stop>
110+
<LinkIcon class="mt-0.5 ml-3 w-4" />
111+
</router-link>
112+
</div>
113+
</td>
114+
</tr>
94115
</table>
95116
</div>
96117
<div class="ff-instance-info">
@@ -140,6 +161,7 @@
140161

141162
<script>
142163
import { ExternalLinkIcon, LinkIcon, ServerIcon, TemplateIcon, TrendingUpIcon } from '@heroicons/vue/outline'
164+
import { mapState } from 'vuex'
143165
144166
import InstanceApi from '../../api/instances.js'
145167
import FormHeading from '../../components/FormHeading.vue'
@@ -185,6 +207,7 @@ export default {
185207
}
186208
},
187209
computed: {
210+
...mapState('account', ['features']),
188211
instanceRunning () {
189212
return this.instance?.meta?.state === 'running'
190213
},

0 commit comments

Comments
 (0)