Dont show switch type if files translation disabled

This commit is contained in:
Sébastien Thuret 2021-10-25 17:20:57 +02:00
parent aac45a60ab
commit b3c089b246
No known key found for this signature in database
GPG key ID: 4742E2D66933BB08
2 changed files with 3 additions and 1 deletions

View file

@ -105,7 +105,7 @@
<div class="container">
<div class="row">
<h3 class="header center">Translation API</h3>
<div class="col s12 mb-1">
<div class="col s12 mb-1" v-if="disableFilesTranslation === false">
<button type="button" class="btn btn-switch-type" @click="switchType('text')" :class="{'active': translationType === 'text'}"><i class="material-icons left">title</i>Translate text</button>
<button type="button" class="btn btn-switch-type" @click="switchType('files')" :class="{'active': translationType === 'files'}"><i class="material-icons left">description</i>Translate files</button>
</div>