Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
Géocontrib Frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Redmine
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GéoContrib
Géocontrib Frontend
Commits
bd8d5874
Commit
bd8d5874
authored
3 years ago
by
Timothee P
Browse files
Options
Downloads
Patches
Plain Diff
prevent undefined error & remove unexistent function
parent
37c38559
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!72
REDMINE_ISSUE-11919
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/views/project/Project_edit.vue
+4
-7
4 additions, 7 deletions
src/views/project/Project_edit.vue
with
4 additions
and
7 deletions
src/views/project/Project_edit.vue
+
4
−
7
View file @
bd8d5874
<
template
>
<
template
>
<div
class=
"fourteen wide column"
>
<div
class=
"fourteen wide column"
>
<div
<div
:class=
"
{ active: loading }" class="ui inverted dimmer">
:class=
"
{active: loading}"
class="ui inverted dimmer"
>
<div
class=
"ui text loader"
>
<div
class=
"ui text loader"
>
Projet en cours de création. Vous allez être redirigé.
Projet en cours de création. Vous allez être redirigé.
</div>
</div>
...
@@ -346,7 +343,7 @@ export default {
...
@@ -346,7 +343,7 @@ export default {
postProjectThumbnail
(
projectSlug
)
{
postProjectThumbnail
(
projectSlug
)
{
//* send img to the backend when feature_type is created
//* send img to the backend when feature_type is created
if
(
this
.
isValidImage
(
this
.
fileToImport
)
)
{
if
(
this
.
fileToImport
)
{
let
formData
=
new
FormData
();
let
formData
=
new
FormData
();
formData
.
append
(
"
file
"
,
this
.
fileToImport
);
formData
.
append
(
"
file
"
,
this
.
fileToImport
);
const
url
=
const
url
=
...
@@ -432,7 +429,7 @@ export default {
...
@@ -432,7 +429,7 @@ export default {
this
.
loading
=
false
;
this
.
loading
=
false
;
})
})
.
catch
((
error
)
=>
{
.
catch
((
error
)
=>
{
if
(
error
.
response
.
data
.
title
[
0
])
{
if
(
error
.
response
&&
error
.
response
.
data
.
title
[
0
])
{
this
.
errors
.
title
.
push
(
error
.
response
.
data
.
title
[
0
]);
this
.
errors
.
title
.
push
(
error
.
response
.
data
.
title
[
0
]);
}
}
this
.
loading
=
false
;
this
.
loading
=
false
;
...
@@ -455,7 +452,7 @@ export default {
...
@@ -455,7 +452,7 @@ export default {
}
}
})
})
.
catch
((
error
)
=>
{
.
catch
((
error
)
=>
{
if
(
error
.
response
.
data
.
title
[
0
])
{
if
(
error
.
response
&&
error
.
response
.
data
.
title
[
0
])
{
this
.
errors
.
title
.
push
(
error
.
response
.
data
.
title
[
0
]);
this
.
errors
.
title
.
push
(
error
.
response
.
data
.
title
[
0
]);
}
}
throw
error
;
throw
error
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment