Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
les
gancio
Commits
00e8e0bd
Verified
Commit
00e8e0bd
authored
Jun 07, 2021
by
les
Browse files
autofix URL on import
parent
91f482df
Changes
1
Hide whitespace changes
Inline
Side-by-side
pages/add/ImportDialog.vue
View file @
00e8e0bd
...
...
@@ -79,6 +79,9 @@ export default {
this
.
error
=
true
return
}
if
(
!
this
.
URL
.
match
(
/^https
?
:
\/\/
/
))
{
this
.
URL
=
`https://
${
this
.
URL
}
`
}
this
.
error
=
false
this
.
errorMessage
=
''
this
.
loading
=
true
...
...
@@ -86,7 +89,6 @@ export default {
try
{
const
ret
=
await
this
.
$axios
.
$get
(
'
/event/import
'
,
{
params
:
{
URL
:
this
.
URL
}
})
this
.
events
=
ret
// check if contain an h-event
this
.
$emit
(
'
imported
'
,
ret
[
0
])
}
catch
(
e
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment