Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
api-connection
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Coscine
frontend
libraries
api-connection
Commits
c8cdb64d
Commit
c8cdb64d
authored
3 years ago
by
Petar Hristov
Browse files
Options
Downloads
Plain Diff
Merge branch 'Sprint/2021-15' into 'master'
Sprint/2021 15 See merge request
!131
parents
fdad4e8a
8002b078
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!131
Sprint/2021 15
Changes
2
Pipelines
1
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/requests/resource-api.ts
+12
-0
12 additions, 0 deletions
src/requests/resource-api.ts
yarn.lock-workspace
+864
-3024
864 additions, 3024 deletions
yarn.lock-workspace
with
876 additions
and
3024 deletions
src/requests/resource-api.ts
+
12
−
0
View file @
c8cdb64d
...
@@ -66,4 +66,16 @@ export class ResourceApi {
...
@@ -66,4 +66,16 @@ export class ResourceApi {
.
then
(
thenHandler
)
.
then
(
thenHandler
)
.
catch
(
catchHandler
);
.
catch
(
catchHandler
);
}
}
public
static
setResourceReadonly
(
resourceId
:
string
,
isResourceReadOnly
:
boolean
,
thenHandler
:
any
=
apiConnectionBasic
.
defaultThenHandler
,
catchHandler
:
any
=
apiConnectionBasic
.
defaultOnCatch
)
{
apiConnectionBasic
.
setHeader
();
return
axios
.
post
(
getResourceApiUrl
()
+
resourceId
+
'
/setReadonly?status=
'
+
isResourceReadOnly
)
.
then
(
thenHandler
)
.
catch
(
catchHandler
);
}
}
}
This diff is collapsed.
Click to expand it.
yarn.lock-workspace
+
864
−
3024
View file @
c8cdb64d
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