Skip to content

Commit

Permalink
Setup link to repo
Browse files Browse the repository at this point in the history
  • Loading branch information
mantas6 committed Dec 29, 2018
1 parent 0e0579d commit cc60ec6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
VUE_APP_SOURCE_LINK=https://github.com/MantasPauliukonis/survival-clicker2
7 changes: 4 additions & 3 deletions src/components/layout/HeaderContainer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<template v-if="globals.isPaused">{{ $t('unpause') }}</template>
<template v-else>{{ $t('pause') }}</template>
</button>
<button @click="save">{{ $t('save') }}</button>
<button @click="openSource">{{ $t('source') }}</button>
</div>
<button class="suicide" @click="reset">{{ $t('suicide') }}</button>
</header>
Expand Down Expand Up @@ -91,10 +91,11 @@ export default class HeaderContainer extends Vue {
pause() {
this.relay.emit('pause');
this.relay.emit('save');
}
save() {
this.relay.emit('save');
openSource() {
window.open(process.env.VUE_APP_SOURCE_LINK, '_blank');
}
}
</script>
Expand Down
1 change: 1 addition & 0 deletions src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"pause": "Pause",
"unpause": "Play",
"save": "Save",
"source": "Visit Github",
"stats": {
"health": {
"title": "Health"
Expand Down

0 comments on commit cc60ec6

Please sign in to comment.