drone
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { reactive } from 'vue'
|
||||
import { ref } from 'vue'
|
||||
import { useRouter } from 'vue-router'
|
||||
import companyBlock from 'components/companyBlock.vue'
|
||||
import { useCompaniesStore } from 'stores/companies'
|
||||
@@ -17,7 +17,7 @@
|
||||
const router = useRouter()
|
||||
const companiesStore = useCompaniesStore()
|
||||
|
||||
const newCompany = reactive<CompanyParams>({} as CompanyParams)
|
||||
const newCompany = ref<CompanyParams>({} as CompanyParams)
|
||||
|
||||
async function addCompany(companyData: CompanyParams) {
|
||||
await companiesStore.add(companyData)
|
||||
|
||||
@@ -13,8 +13,7 @@
|
||||
style="max-width: 400px;"
|
||||
>
|
||||
<base-logo
|
||||
class="col-grow q-pa-lg"
|
||||
:style="{ alignItems: 'flex-end' }"
|
||||
class="col-grow q-pa-lg text-h5"
|
||||
/>
|
||||
|
||||
<div class="flex column w100">
|
||||
|
||||
@@ -84,20 +84,20 @@
|
||||
import pnTimeZoneSelector from 'components/pnTimeZoneSelector.vue'
|
||||
|
||||
const settingsStore = useSettingsStore()
|
||||
|
||||
const locale = ref('')
|
||||
const localeBot = ref('')
|
||||
|
||||
const localeOptions = settingsStore.supportLocale
|
||||
|
||||
const locale = ref('')
|
||||
watch(locale, async (newValue) => {
|
||||
await settingsStore.updateSettings({ locale: newValue })
|
||||
})
|
||||
|
||||
const localeBot = ref('')
|
||||
watch(localeBot, async (newValue) => {
|
||||
await settingsStore.updateSettings({ localeBot: newValue })
|
||||
})
|
||||
|
||||
const fontSize = ref(14)
|
||||
const fontSize = ref(16)
|
||||
const fontSizeOptions = settingsStore.supportFontSizes
|
||||
const fontSizeLabel = computed(() =>
|
||||
fontSizeOptions.find(el => el.value === fontSize.value)?.label ?? ''
|
||||
|
||||
@@ -339,8 +339,6 @@
|
||||
if (!newD) unblockUserId.value = undefined
|
||||
})
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
Reference in New Issue
Block a user