Skip to content
This repository was archived by the owner on Oct 6, 2022. It is now read-only.

Commit

Permalink
Always show downloads on homepage
Browse files Browse the repository at this point in the history
  • Loading branch information
mdcfe committed Jun 18, 2019
1 parent 35b41a8 commit bb4445a
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions docute-landing.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,13 @@ const landing = {
<p><i>The official EssentialsX site.</i></p>
<section>
<a class="big wiki" href="#/_DocuteHome">Visit wiki</a>
<a class="big download" href="#" @click="toggleDownloads">
<span v-if="showDownloads">Hide downloads</span>
<span v-else>Show downloads</span>
</a>
</section>
<DownloadPage v-if="showDownloads"></DownloadPage>
<DownloadPage></DownloadPage>
</div>
`,
component: {
components: {
DownloadPage,
},
data() {
return {
showDownloads: false,
};
},
methods: {
toggleDownloads() {
this.showDownloads = !this.showDownloads;
}
}
},
};
Expand Down

0 comments on commit bb4445a

Please sign in to comment.