replace hardcoded strings

This commit is contained in:
kyw504100 2022-02-20 04:42:06 +08:00
parent a1d72d0d44
commit 9ef4d67b40
No known key found for this signature in database
GPG key ID: 9116E2159A0521FD
7 changed files with 84 additions and 46 deletions

View file

@ -3,7 +3,7 @@
<div class="gh-header">
<div class="row">
<div class="col nopadding">
<h1 class="header-text">Themes from GitHub</h1>
<h1 class="header-text">{{$root.getLz('settings.header.visual.theme.github.page')}}</h1>
</div>
<div class="col-auto nopadding flex-center">
<button class="md-btn md-btn-small md-btn-block" @click="installThemeURL()">
@ -45,8 +45,8 @@
</div>
<div class="col-auto nopadding flex-center">
<button class="md-btn md-btn-primary" @click="installThemeRepo(openRepo)">
<span v-if="!themesInstalled.includes(openRepo.full_name)">Install</span>
<span v-else>Update</span>
<span v-if="!themesInstalled.includes(openRepo.full_name)">{{$root.getLz('action.install')}}</span>
<span v-else>{{$root.getLz('action.update')}}</span>
</button>
</div>
</div>