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
efd9c3c6
Commit
efd9c3c6
authored
3 years ago
by
Petar Hristov
Browse files
Options
Downloads
Patches
Plain Diff
New: Setting of a resource as archived
parent
fdad4e8a
Branches
Sprint/2021-16
Branches containing commit
Tags
Tags containing commit
2 merge requests
!132
Product/1573 ReadOnlyResources
,
!131
Sprint/2021 15
Changes
2
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 @
efd9c3c6
...
@@ -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 @
efd9c3c6
This diff is collapsed.
Click to expand it.
CoscineBot
@CoscineBot
mentioned in commit
8727171d
·
3 years ago
mentioned in commit
8727171d
mentioned in commit 8727171d83d228555d5dda2953adc856429f57a7
Toggle commit list
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