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

fix: reset project name onDestroy #447

Merged
merged 3 commits into from
Oct 23, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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