eslint --fix
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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 ?? '')
|
||||
|
||||
@@ -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[]
|
||||
|
||||
@@ -154,7 +154,7 @@ const deleting = ref(false)
|
||||
|
||||
const profile = computed(() => authStore.activeProfile)
|
||||
|
||||
function onSaved(updated: UserProfile) {
|
||||
function onSaved(_updated: UserProfile) {
|
||||
editing.value = false
|
||||
}
|
||||
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user