eslint --fix

This commit is contained in:
Oscar
2026-06-08 16:04:01 +03:00
parent b98387ea58
commit 031781a47e
15 changed files with 83 additions and 34 deletions

View File

@@ -156,7 +156,9 @@ async function send(text: string, mediaUrl?: string, mediaType?: 'photo' | 'voic
}
}
function goBack() { window.history.back() }
function goBack() {
window.history.back()
}
async function doCloseChat() {
if (!profileId.value)

View File

@@ -176,7 +176,7 @@ function formatDateTime(iso: string) {
}
// Pending = first two status ids roughly; accept/decline/complete = 3+
const pendingStatusId = computed(() => statuses.value[0]?.id ?? '')
const _pendingStatusId = computed(() => statuses.value[0]?.id ?? '')
const acceptedStatusId = computed(() => statuses.value[1]?.id ?? '')
const declinedStatusId = computed(() => statuses.value[2]?.id ?? '')
const completedStatusId = computed(() => statuses.value[3]?.id ?? '')

View File

@@ -214,8 +214,14 @@ const loadingDistricts = ref(false)
// Load districts when city changes
watch(() => form.cityId, async (cityId) => {
if (!cityId) { districts.value = []; return }
if (uiStore.districts[cityId]) { districts.value = uiStore.districts[cityId]; return }
if (!cityId) {
districts.value = []
return
}
if (uiStore.districts[cityId]) {
districts.value = uiStore.districts[cityId]
return
}
loadingDistricts.value = true
try {
const res = await apiClient.api.citiesControllerFindDistricts(cityId) as unknown as District[]

View File

@@ -154,7 +154,7 @@ const deleting = ref(false)
const profile = computed(() => authStore.activeProfile)
function onSaved(updated: UserProfile) {
function onSaved(_updated: UserProfile) {
editing.value = false
}

View File

@@ -129,7 +129,7 @@ import { useUi } from '@/composables/useUi'
const route = useRoute()
const authStore = useAuth()
const uiStore = useUi()
const chatStore = useChat()
const _chatStore = useChat()
const profileId = route.params.profileId as string
const profile = ref<UserProfile | null>(null)
@@ -173,7 +173,9 @@ const isOwnProfile = computed(() =>
authStore.profiles.some(p => p.id === profileId),
)
function goBack() { window.history.back() }
function goBack() {
window.history.back()
}
</script>
<style scoped lang="scss">