Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
boco-frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository 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
idatt2106_2022_02
boco-frontend
Commits
f2bea68f
Commit
f2bea68f
authored
2 years ago
by
henrikburmann
Browse files
Options
Downloads
Patches
Plain Diff
Fixed 401 error
parent
58fea0f3
No related branches found
No related tags found
1 merge request
!123
Delete listing
Pipeline
#181360
passed
2 years ago
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/components/UserProfileComponents/UserItems.vue
+1
-1
1 addition, 1 deletion
src/components/UserProfileComponents/UserItems.vue
src/services/user.service.js
+2
-2
2 additions, 2 deletions
src/services/user.service.js
with
3 additions
and
3 deletions
src/components/UserProfileComponents/UserItems.vue
+
1
−
1
View file @
f2bea68f
...
...
@@ -273,7 +273,7 @@ export default {
},
async
deleteItem
()
{
await
UserService
.
setListingToDeleted
(
this
.
chosenItem
);
//
this.$router.go(0);
this
.
$router
.
go
(
0
);
},
searchWritten
:
function
()
{
//This method triggers when search input field is changed
...
...
This diff is collapsed.
Click to expand it.
src/services/user.service.js
+
2
−
2
View file @
f2bea68f
...
...
@@ -29,8 +29,8 @@ class UserService {
async
setListingToDeleted
(
listingId
)
{
console
.
log
(
tokenHeader
());
return
await
axios
.
put
(
API_URL
+
"
listing/
"
+
listingId
,
{
headers
:
{
Authorization
:
'
B
ea
r
er
eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJmaX…5vIn0.4GOdg2HsKb5ubJjkO674gQRO4C0RSIsHa4X-MI2ftHg
'
},
.
put
(
API_URL
+
"
listing/
"
+
listingId
,
null
,
{
headers
:
tokenH
ea
d
er
()
})
.
then
((
res
)
=>
{
return
res
.
data
;
...
...
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