fixed #69
All checks were successful
CSGOWTF/csgowtf/pipeline/head This commit looks good

This commit is contained in:
2022-02-13 01:33:43 +01:00
parent 9ff510a9f6
commit 3963f6decf
2 changed files with 84 additions and 71 deletions

View File

@@ -33,7 +33,7 @@ export default {
required: true
}
},
setup(props) {
setup() {
const store = useStore()
const data = reactive({
@@ -67,18 +67,12 @@ export default {
toggleShow()
if (!props.translated && toggle.value === 'translated') {
response = await GetChatHistoryTranslated(store, store.state.matchDetails.match_id)
}
if (props.translated && toggle.value === 'translated')
response = 'already translated'
if (toggle.value === 'original')
response = 'original'
response = await GetChatHistoryTranslated(store, store.state.matchDetails.match_id)
if (refreshButton.classList.contains('show'))
refreshButton.classList.remove('show')
return response
return [response, toggle.value]
}
const toggleShow = () => {
@@ -108,6 +102,7 @@ export default {
.toggle-btn {
margin: 0 auto;
cursor: pointer;
width: 100%;
.fa {
display: none;