Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CS699-Project
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Meet Narendra
CS699-Project
Commits
fd6dee8c
Commit
fd6dee8c
authored
Nov 22, 2022
by
Meet Narendra
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added dialog box
parent
b11a0d5b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
14 deletions
+14
-14
frontend/sitcomm/src/app/app.module.ts
frontend/sitcomm/src/app/app.module.ts
+2
-0
frontend/sitcomm/src/app/jira/jira.component.ts
frontend/sitcomm/src/app/jira/jira.component.ts
+12
-14
No files found.
frontend/sitcomm/src/app/app.module.ts
View file @
fd6dee8c
...
...
@@ -29,6 +29,7 @@ import { MatListModule } from '@angular/material/list';
import
{
MatExpansionModule
}
from
'
@angular/material/expansion
'
;
//import { MatDialog, MatDialogRef } from '@angular/material/dialog';
//import { CreateTicketDialog } from './jira/jira.component';
import
{
MatDialogModule
}
from
'
@angular/material/dialog
'
@
NgModule
({
declarations
:
[
...
...
@@ -61,6 +62,7 @@ import { MatExpansionModule} from '@angular/material/expansion';
MatStepperModule
,
MatListModule
,
MatExpansionModule
,
MatDialogModule
//MatDialog,
//MatDialogRef,
//CreateTicketDialog
...
...
frontend/sitcomm/src/app/jira/jira.component.ts
View file @
fd6dee8c
import
{
DialogRef
}
from
'
@angular/cdk/dialog
'
;
import
{
Component
,
OnInit
}
from
'
@angular/core
'
;
import
{
MatDialog
}
from
'
@angular/material/dialog
'
;
import
{
Observable
,
Observer
}
from
'
rxjs
'
;
import
{
FetcherService
}
from
'
../fetcher.service
'
;
...
...
@@ -12,7 +13,7 @@ import { FetcherService } from '../fetcher.service';
export
class
JiraComponent
implements
OnInit
{
id
:
number
;
name
:
string
;
constructor
(
private
fetcherService
:
FetcherService
)
{
constructor
(
p
ublic
dialog
:
MatDialog
,
p
rivate
fetcherService
:
FetcherService
)
{
console
.
log
(
window
.
history
.
state
);
this
.
id
=
window
.
history
.
state
.
id
;
this
.
name
=
window
.
history
.
state
.
name
;
...
...
@@ -28,7 +29,12 @@ export class JiraComponent implements OnInit {
}
}
openDialog
(){}
openDialog
(){
const
dialogRef
=
this
.
dialog
.
open
(
CreateTicketDialog
);
dialogRef
.
afterClosed
().
subscribe
(
result
=>
{
console
.
log
(
`Dialog result:
${
result
}
`
);
});
}
calRowHeight
(){
let
max_issue
=
Math
.
max
(
this
.
to_do
.
length
,
this
.
in_prog
.
length
,
this
.
done
.
length
,
this
.
backlog
.
length
)
...
...
@@ -77,22 +83,14 @@ export class JiraComponent implements OnInit {
backlog
=
BACKLOG
;
}
/*
@
Component
({
selector
:
'
create-ticket-dialog
'
,
templateUrl: 'create-ticket-dialog.html',
templateUrl
:
'
./
create-ticket-dialog.html
'
,
})
export class CreateTicketDialog {
constructor(public dialogRef: MatDialogRef<CreateTicketDialog> ) {}
export
class
CreateTicketDialog
{
}
openDialog(){
this.dialogRef.open(CreateTicketDialog, {
height: '250px',
width: '250px'
});
}
}
*/
export
const
GRID_NAME
=
[
{
name
:
'
TO DO ISSUES
'
,
content
:
'
BLAH BLAH BLAH
'
},
{
name
:
'
IN PROGRESS
'
,
content
:
'
BLAH BLAH BLAH
'
},
...
...
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