From b78ab195890dab262531d2f82f33b7d137726d13 Mon Sep 17 00:00:00 2001 From: Remy Raes Date: Sun, 25 Sep 2022 00:49:43 +0200 Subject: play button is disabled when game is running --- src-vue/src/views/PlayView.vue | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'src-vue') diff --git a/src-vue/src/views/PlayView.vue b/src-vue/src/views/PlayView.vue index 28458b4f..2ac21ba4 100644 --- a/src-vue/src/views/PlayView.vue +++ b/src-vue/src/views/PlayView.vue @@ -8,6 +8,11 @@ export default { developerModeClicks: 0 } }, + computed: { + northstarIsRunning(): boolean { + return this.$store.state.northstar_is_running; + } + }, methods: { activateDeveloperMode() { this.developerModeClicks += 1; @@ -41,11 +46,13 @@ export default {
- Launch game + + {{ northstarIsRunning ? "Game is running" : "Launch game" }} +
Northstar is running:
-
{{ $store.state.northstar_is_running }}
+
{{ northstarIsRunning }}
Origin is running:
@@ -95,6 +102,12 @@ button { } +.fc_launch__button:focus { + background-color: var(--el-color-primary); + border-color: var(--el-color-primary); +} + + #fc_services__status { display: inline-block; position: fixed; -- cgit v1.2.3