diff options
author | GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com> | 2022-11-11 12:08:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-11 12:08:34 +0100 |
commit | db569f94c2dc461ee17fcebd083a46aa20fb06f6 (patch) | |
tree | a3db381dcc1ee574177d1754dc7ac719d1b986fb /src-vue/src/views/PlayView.vue | |
parent | c83d87103381706df262fdd07a78f4d50d86de39 (diff) | |
download | FlightCore-db569f94c2dc461ee17fcebd083a46aa20fb06f6.tar.gz FlightCore-db569f94c2dc461ee17fcebd083a46aa20fb06f6.zip |
refactor: Clicking FC version activates dev (#44)
instead of clicking Northstar version.
Makes dev mode a bit more "hidden" (i.e. less likely to be accidentally
opened by end-user) and it's more logical to click FlightCore version to
open **FlightCore** dev mode as opposed to clicking Northstar version.
Diffstat (limited to 'src-vue/src/views/PlayView.vue')
-rw-r--r-- | src-vue/src/views/PlayView.vue | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/src-vue/src/views/PlayView.vue b/src-vue/src/views/PlayView.vue index 7b034004..4413319f 100644 --- a/src-vue/src/views/PlayView.vue +++ b/src-vue/src/views/PlayView.vue @@ -5,11 +5,6 @@ import PlayButton from '../components/PlayButton.vue'; import { defineComponent } from "vue"; export default defineComponent({ - data() { - return { - developerModeClicks: 0 - } - }, components: { PlayButton }, @@ -22,20 +17,6 @@ export default defineComponent({ }, }, methods: { - activateDeveloperMode() { - this.developerModeClicks += 1; - if (this.developerModeClicks >= 6) { - this.$store.state.developer_mode = true; - ElNotification({ - title: 'Watch out!', - message: 'Developer mode enabled.', - type: 'info', - position: 'bottom-right' - }); - this.developerModeClicks = 0; - } - }, - showChangelogPage() { this.$store.commit('updateCurrentTab', Tabs.CHANGELOG); } @@ -47,9 +28,7 @@ export default defineComponent({ <div class="fc_launch__container"> <div class="fc_title">Northstar</div> <div class="fc_northstar__version__container"> - <div class="fc_northstar__version" @click="activateDeveloperMode"> - {{ northstarVersion === '' ? 'Unknown version' : `v${northstarVersion}` }} - </div> + {{ northstarVersion === '' ? 'Unknown version' : `v${northstarVersion}` }} <div v-if="northstarVersion !== ''" class="fc_changelog__link" @click="showChangelogPage"> (see patch notes) </div> |