Commit cc49f5d6 by Harsh Shah

Create Job - check visibility only if button is enabled

parent 908b2246
...@@ -192,6 +192,7 @@ export class AdminPortalLayoutComponent implements OnInit, OnDestroy { ...@@ -192,6 +192,7 @@ export class AdminPortalLayoutComponent implements OnInit, OnDestroy {
} }
createJobClicked(): void { createJobClicked(): void {
if(!this.createJobDisabled) {
this.showLoader = true; this.showLoader = true;
this.subscriptions.push( this.subscriptions.push(
this.adminPortalLayoutService.createJob(this.selectedTeamID, this.companyUser) this.adminPortalLayoutService.createJob(this.selectedTeamID, this.companyUser)
...@@ -218,6 +219,7 @@ export class AdminPortalLayoutComponent implements OnInit, OnDestroy { ...@@ -218,6 +219,7 @@ export class AdminPortalLayoutComponent implements OnInit, OnDestroy {
) )
); );
} }
}
ngOnDestroy(): void { ngOnDestroy(): void {
this.utilsService.unsubscribeSubscriptions(this.subscriptions); this.utilsService.unsubscribeSubscriptions(this.subscriptions);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment