Fix Always On OTPs & Dots display and looping

This commit is contained in:
Bubka
2023-11-17 19:49:39 +01:00
parent a75e3c13f7
commit e8a3c441be
3 changed files with 96 additions and 75 deletions

View File

@ -3,12 +3,12 @@ import { httpClientFactory } from '@/services/httpClientFactory'
const apiClient = httpClientFactory('api')
export default {
getAll(withOtp = false) {
return apiClient.get('/twofaccounts' + (withOtp ? '?withOtp=1' : ''))
getAll(withOtp = false, config = {}) {
return apiClient.get('/twofaccounts' + (withOtp ? '?withOtp=1' : ''), { ...config })
},
getByIds(ids, withOtp = false) {
return apiClient.get('/twofaccounts?ids=' + ids + (withOtp ? '&withOtp=1' : ''))
getByIds(ids, withOtp = false, config = {}) {
return apiClient.get('/twofaccounts?ids=' + ids + (withOtp ? '&withOtp=1' : ''), { ...config })
},
get(id, config = {}) {