Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
workspaces
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
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ssa
workspaces
Commits
3dd2c25e
Commit
3dd2c25e
authored
3 years ago
by
Andrew Kapuscinski
Committed by
Nathan Hertz
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
added button to /workspaces page for creating a std imaging capability request
parent
142bb190
No related branches found
No related tags found
1 merge request
!330
added button to /workspaces page for creating a std imaging capability request
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
apps/web/src/app/workspaces/workspaces.component.html
+34
-0
34 additions, 0 deletions
apps/web/src/app/workspaces/workspaces.component.html
apps/web/src/app/workspaces/workspaces.component.ts
+23
-0
23 additions, 0 deletions
apps/web/src/app/workspaces/workspaces.component.ts
with
57 additions
and
0 deletions
apps/web/src/app/workspaces/workspaces.component.html
+
34
−
0
View file @
3dd2c25e
...
@@ -72,3 +72,37 @@
...
@@ -72,3 +72,37 @@
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"container-fluid py-3"
>
<div
class=
"row p-3 mt-4"
>
<div
class=
"col-4"
>
<div
class=
"md-form"
>
<label
for=
"cmsPathInput"
class=
""
>
CMS Path
</label>
<input
type=
"text"
id=
"cmsPathInput"
(change)=
"setCmsPath($event.target.value)"
class=
"form-control"
/>
</div>
</div>
<div
class=
"col-3"
>
<div
class=
"md-form"
>
<label
for=
"sdmId"
class=
""
>
SDM ID
</label>
<input
type=
"text"
id=
"sdmIdInput"
(change)=
"setSdmId($event.target.value)"
class=
"form-control"
/>
</div>
</div>
<div
class=
"col-3 mb-0 align-self-md-end"
>
<button
class=
"btn btn-lg btn-info"
id=
"cms-imaging-submit"
(click)=
"standardLaunchCapabilityOnClick('std_cms_imaging')"
>
<span
class=
"fas fa-cog"
></span><span
class=
"pl-2"
>
Create Standard Imaging Request
</span>
</button>
</div>
</div>
</div>
This diff is collapsed.
Click to expand it.
apps/web/src/app/workspaces/workspaces.component.ts
+
23
−
0
View file @
3dd2c25e
...
@@ -15,6 +15,8 @@ export class WorkspacesComponent implements OnInit {
...
@@ -15,6 +15,8 @@ export class WorkspacesComponent implements OnInit {
public
productLocator
:
string
;
public
productLocator
:
string
;
public
userEmail
:
string
;
public
userEmail
:
string
;
public
inputFileList
:
FileList
;
public
inputFileList
:
FileList
;
public
cmsPath
:
string
;
public
sdmId
:
string
;
constructor
(
constructor
(
private
capabilityLauncher
:
CapabilityLauncherService
,
private
capabilityLauncher
:
CapabilityLauncherService
,
...
@@ -38,12 +40,17 @@ export class WorkspacesComponent implements OnInit {
...
@@ -38,12 +40,17 @@ export class WorkspacesComponent implements OnInit {
* OnClick method that creates a capability request a given capability and submits it with the standard parameters:
* OnClick method that creates a capability request a given capability and submits it with the standard parameters:
* - Product locator
* - Product locator
* - User email
* - User email
* - CMS Path
* - SDM ID
* FIXME: Remove check for calibration once it is implemented
* FIXME: Remove check for calibration once it is implemented
*/
*/
standardLaunchCapabilityOnClick
(
capabilityName
:
string
):
void
{
standardLaunchCapabilityOnClick
(
capabilityName
:
string
):
void
{
if
(
capabilityName
==
"
std_cms_imaging
"
)
{
this
.
productLocator
=
undefined
;
}
this
.
launchCapability
(
capabilityName
,
{
this
.
launchCapability
(
capabilityName
,
{
product_locator
:
this
.
productLocator
,
product_locator
:
this
.
productLocator
,
user_email
:
this
.
userEmail
,
user_email
:
this
.
userEmail
,
cms_path
:
this
.
cmsPath
,
sdmId
:
this
.
sdmId
,
});
});
}
}
...
@@ -71,6 +78,22 @@ export class WorkspacesComponent implements OnInit {
...
@@ -71,6 +78,22 @@ export class WorkspacesComponent implements OnInit {
this
.
inputFileList
=
inputFileList
;
this
.
inputFileList
=
inputFileList
;
}
}
/**
* method to set the CMS Path for Standard Imaging
* @param path CMS path for imaging
*/
setCmsPath
(
path
:
string
):
void
{
this
.
cmsPath
=
path
;
}
/**
* method to set the SDM ID for Standard Imaging
* @param path SDM ID for imaging
*/
setSdmId
(
id
:
string
):
void
{
this
.
sdmId
=
id
;
}
/**
/**
* Method that uses the capabilityLauncher service to launch a capability
* Method that uses the capabilityLauncher service to launch a capability
* @param capabilityName Name of capability
* @param capabilityName Name of capability
...
...
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