Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
PERFORMA_REPLICA
Overview
Overview
Details
Activity
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
Muhammad Usman
PERFORMA_REPLICA
Commits
fe423a1a
Commit
fe423a1a
authored
Dec 23, 2019
by
GD-A-150752
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
navigate-back
parent
9e630ff1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
11 deletions
+12
-11
message-engine.component.html
...p/components/message-engine/message-engine.component.html
+2
-2
message-engine.component.ts
...app/components/message-engine/message-engine.component.ts
+10
-9
No files found.
frontend/angular/src/app/components/message-engine/message-engine.component.html
View file @
fe423a1a
...
...
@@ -12,7 +12,7 @@
</div>
<div
*
ngIf=
"!embedded"
class=
"main-tab-template pl-1"
>
<div
class=
"chief-officer mb-0"
>
<a
[
routerLink
]="[
previousUrl
]
"
class=
"arrow-btn-blue ml-0"
>
<a
(
click
)="
goBack
()
"
class=
"arrow-btn-blue ml-0"
>
<img
src=
"assets/images/arrow-left-prev_blue.svg"
alt=
"Back"
>
</a>
{{heading}}
...
...
@@ -108,7 +108,7 @@
<div
class=
"ui-g-12 ui-md-12"
>
<div
class=
"main-tab-template pl-1 {{embedded ? 'h-45' : '' }}"
>
<div
class=
"chief-officer mb-0"
>
<a
[
routerLink
]="[
previousUrl
]
"
class=
"arrow-btn-blue ml-0"
*
ngIf=
"!embedded"
>
<a
(
click
)="
goBack
()
"
class=
"arrow-btn-blue ml-0"
*
ngIf=
"!embedded"
>
<img
src=
"assets/images/arrow-left-prev_blue.svg"
alt=
"Back"
>
</a>
{{heading}}
...
...
frontend/angular/src/app/components/message-engine/message-engine.component.ts
View file @
fe423a1a
import
{
Location
}
from
'@angular/common'
;
import
{
Component
,
EventEmitter
,
Input
,
OnInit
,
Output
,
ViewChild
}
from
'@angular/core'
;
import
{
NgForm
}
from
'@angular/forms'
;
import
{
ActivatedRoute
,
NavigationEnd
,
Router
}
from
'@angular/router'
;
import
{
ActivatedRoute
,
Router
}
from
'@angular/router'
;
import
{
MenuItem
}
from
'primeng/api'
;
import
{
Editor
}
from
'primeng/editor'
;
import
{
FileUpload
}
from
'primeng/fileupload'
;
...
...
@@ -46,7 +47,6 @@ export class MessageEngineComponent extends BaseComponent implements OnInit {
apiUrl
=
environment
.
baseUrl
;
loggedInId
=
null
;
showLoader
=
false
;
previousUrl
:
string
;
heading
=
'...'
;
constructor
(
...
...
@@ -57,15 +57,16 @@ export class MessageEngineComponent extends BaseComponent implements OnInit {
private
appService
:
AppService
,
private
messageEngineService
:
MessageEngineService
,
private
adminPortalLayoutService
:
AdminPortalLayoutService
,
private
applicantPortalLayoutService
:
ApplicantPortalLayoutService
private
applicantPortalLayoutService
:
ApplicantPortalLayoutService
,
private
location
:
Location
)
{
super
(
utilsService
);
// In order to get previous url for navigation
router
.
events
.
filter
(
event
=>
event
instanceof
NavigationEnd
)
.
subscribe
((
e
:
any
)
=>
{
this
.
previousUrl
=
e
.
url
;
});
}
goBack
():
void
{
if
(
window
.
history
.
length
>
1
)
{
this
.
location
.
back
()
;
}
}
ngOnInit
():
void
{
...
...
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