build: add name to components which failed lint check

This commit is contained in:
2021-11-19 21:44:36 +01:00
parent 9af6f37d74
commit 0b8f77372f
19 changed files with 69 additions and 249 deletions
+5 -4
View File
@@ -70,6 +70,7 @@ import { useAuth } from '../../../plugins/auth'
import { useTranslation } from '../../../plugins/i18n'
export default {
name: 'OriginsPage',
setup() {
const { setTitle } = useMutations(['setTitle'])
const { t } = useTranslation()
@@ -87,22 +88,22 @@ export default {
const origin = ref('')
const fetchAddressFn = () => {
if (window.navigator) {
window.navigator.geolocation.getCurrentPosition(pos => {
window.navigator.geolocation.getCurrentPosition((pos) => {
enabled.value = true
doFetchAddress({
latlng: `${pos.coords.latitude},${pos.coords.longitude}`
}).then(res => {
}).then((res) => {
origin.value = res.address
})
})
}
}
const saveOriginFn = o =>
const saveOriginFn = (o) =>
doSaveOrigin({ origin: o }).then(() => {
refetch()
origin.value = ''
})
const removeOriginFn = o =>
const removeOriginFn = (o) =>
doRemoveOrigin({ origin: o }).then(() => refetch())
return {
isAuthenticated,