Skip to content
This repository has been archived by the owner on Jul 23, 2019. It is now read-only.

Commit

Permalink
fix: reset project name onDestroy (#447)
Browse files Browse the repository at this point in the history
  • Loading branch information
edewit authored Oct 23, 2018
1 parent a26e399 commit 4266ba2
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ import {
Host,
Input,
OnInit,
ViewEncapsulation
ViewEncapsulation,
OnDestroy
} from '@angular/core';
import { ActivatedRoute } from '@angular/router';

Expand All @@ -19,7 +20,7 @@ import { broadcast } from '../shared/telemetry.decorator';
templateUrl: './step-indicator.component.html',
styleUrls: ['./step-indicator.component.less']
})
export class StepIndicatorComponent implements OnInit {
export class StepIndicatorComponent implements OnInit, OnDestroy {
/**
* Show appropriate style while steps are in progress of being shown
*
Expand All @@ -42,6 +43,10 @@ export class StepIndicatorComponent implements OnInit {
|| this.route.snapshot.params['projectName'];
}

ngOnDestroy(): void {
this.projectile.sharedState.state.projectName = undefined;
}

// Steps

/**
Expand Down

0 comments on commit 4266ba2

Please sign in to comment.