Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
H
HIAST-Clinics
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
almohanad.hafez
HIAST-Clinics
Commits
aab73747
Commit
aab73747
authored
Aug 24, 2024
by
Almouhannad
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(F) Change modal behavior
parent
72d0dbfb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
14 deletions
+5
-14
app.component.ts
....Frontend/src/app/components/shared/root/app.component.ts
+1
-13
header.component.ts
...app/components/shared/template/header/header.component.ts
+4
-1
No files found.
Clinics.Frontend/src/app/components/shared/root/app.component.ts
View file @
aab73747
import
{
Component
}
from
'@angular/core'
;
import
{
NgbModal
}
from
'@ng-bootstrap/ng-bootstrap'
;
import
{
ToastrService
}
from
'ngx-toastr'
;
@
Component
({
selector
:
'app-root'
,
...
...
@@ -9,18 +7,8 @@ import { ToastrService } from 'ngx-toastr';
})
export
class
AppComponent
{
constructor
(
private
modalService
:
NgbModal
,
private
toastrService
:
ToastrService
)
{
constructor
()
{
}
public
open
(
modal
:
any
):
void
{
this
.
modalService
.
open
(
modal
);
}
public
showToast
():
void
{
this
.
toastrService
.
success
(
"world!"
,
"Hello"
);
this
.
toastrService
.
info
(
"world!"
,
"Hello"
);
this
.
toastrService
.
warning
(
"world!"
,
"Hello"
);
this
.
toastrService
.
error
(
"world!"
,
"Hello"
);
}
}
\ No newline at end of file
Clinics.Frontend/src/app/components/shared/template/header/header.component.ts
View file @
aab73747
...
...
@@ -45,7 +45,10 @@ export class HeaderComponent {
//#region Open pop-up
openPopUp
(
content
:
any
):
void
{
this
.
modalService
.
open
(
content
);
this
.
modalService
.
open
(
content
,
{
centered
:
true
,
size
:
'md'
});
}
//#endregion
...
...
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