aboutsummaryrefslogtreecommitdiff
path: root/src-vue/src/views/PlayView.vue
diff options
context:
space:
mode:
authorAlystrasz <contact@remyraes.com>2022-09-26 23:13:21 +0200
committerAlystrasz <contact@remyraes.com>2022-09-26 23:13:21 +0200
commitea94dd382d3ef759b83350ddf51eecf121eab18f (patch)
treef7d947373b35045c92275931a23d038b09367508 /src-vue/src/views/PlayView.vue
parenta930c0342a584b4e74566a354876585b02635bed (diff)
downloadFlightCore-ea94dd382d3ef759b83350ddf51eecf121eab18f.tar.gz
FlightCore-ea94dd382d3ef759b83350ddf51eecf121eab18f.zip
feat: game cannot be launched if Origin is not running
Diffstat (limited to 'src-vue/src/views/PlayView.vue')
-rw-r--r--src-vue/src/views/PlayView.vue6
1 files changed, 5 insertions, 1 deletions
diff --git a/src-vue/src/views/PlayView.vue b/src-vue/src/views/PlayView.vue
index d6633f53..af891b5c 100644
--- a/src-vue/src/views/PlayView.vue
+++ b/src-vue/src/views/PlayView.vue
@@ -30,6 +30,10 @@ export default {
showChangelogPage() {
this.$store.commit('updateCurrentTab', Tabs.CHANGELOG);
+ },
+
+ launchGame() {
+ this.$store.commit('launchGame');
}
}
};
@@ -47,7 +51,7 @@ export default {
</div>
</div>
<div>
- <el-button :disabled="northstarIsRunning" type="primary" size="large" class="fc_launch__button">
+ <el-button :disabled="northstarIsRunning" type="primary" size="large" @click="launchGame" class="fc_launch__button">
{{ northstarIsRunning ? "Game is running" : "Launch game" }}
</el-button>
<div v-if="$store.state.developer_mode" id="fc_services__status">