Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
9
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Open sidebar
Paul Jongsma
Historiana
Commits
e71efe9d
Unverified
Commit
e71efe9d
authored
Oct 17, 2020
by
Paul Jongsma
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add save for edit
parent
74d54b46
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
8 deletions
+18
-8
src/forms/Viewpoint.vue
src/forms/Viewpoint.vue
+18
-8
No files found.
src/forms/Viewpoint.vue
View file @
e71efe9d
...
...
@@ -88,14 +88,24 @@ export default {
methods
:
{
save
()
{
console
.
log
(
'
save vp
'
,
this
.
vp
.
uuid
);
API
.
post
(
'
/viewpoints/addtoCollection
'
,
{
collection
:
this
.
collection
.
uuid
,
vp
:
this
.
vp
}).
then
(()
=>
{
console
.
log
(
'
VP added to collection
'
,
this
.
collection
.
uuid
);
});
this
.
$emit
(
'
reload
'
,
false
);
this
.
$q
.
notify
({
message
:
'
Viewpoint Added
'
,
position
:
'
center
'
});
if
(
this
.
action
===
'
Add
'
)
{
API
.
post
(
'
/viewpoints/addtoCollection
'
,
{
collection
:
this
.
collection
.
uuid
,
vp
:
this
.
vp
}).
then
(()
=>
{
console
.
log
(
'
VP added to collection
'
,
this
.
collection
.
uuid
);
});
this
.
$emit
(
'
reload
'
,
false
);
this
.
$q
.
notify
({
message
:
'
Viewpoint Added
'
,
position
:
'
center
'
});
}
else
if
(
this
.
action
===
'
Edit
'
)
{
console
.
log
(
'
save changes for vp
'
);
API
.
post
(
'
/viewpoints/vpsave
'
,
{
vp
:
this
.
vp
}).
then
(()
=>
{
this
.
$emit
(
'
reload
'
,
false
);
this
.
$q
.
notify
({
message
:
'
Viewpoint Changed
'
,
position
:
'
center
'
});
});
}
}
}
};
...
...
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