team table, create team modal, delete team modal

This commit is contained in:
romankko2 committed 2022-11-25 23:15:34 +01:00
1 parent 0e33d86c98
commit f6d0764969
24 files changed
+1750 -886

No files matched your search

+3 -3
View File
@@ -2,7 +2,7 @@ import { Language, Options } from "../types"
import { Ref, ref } from 'vue'
import axios from 'axios'
import { createI18n, I18n as I18nType } from 'vue-i18n'
import { Storage } from '@capacitor/storage'
import { Preferences } from '@capacitor/preferences'
export class I18n {
@@ -30,7 +30,7 @@ export class I18n {
}
public async initCurrentLanguage() {
const { value } = await Storage.get({ key: this.languageKey })
const { value } = await Preferences.get({ key: this.languageKey })
if (value) {
this.currentLanguage.value = JSON.parse(value)
@@ -58,7 +58,7 @@ export class I18n {
this.currentLanguage.value = language
this._addAxiosHeaders()
Storage.set({
Preferences.set({
key: this.languageKey,
value: JSON.stringify(language)
})