Skip to content

Commit

Permalink
fix: fix reset issue for #84
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Apr 23, 2020
1 parent 30fc578 commit 4a2cc42
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/app/presentation/design/design.component.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<component-path></component-path>
<component-path class="design-page"></component-path>
4 changes: 4 additions & 0 deletions src/app/presentation/design/design.component.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.design-page {
margin-top: 66px;
height: calc(100vh - 66px);
}
2 changes: 1 addition & 1 deletion src/app/presentation/design/path/path.component.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div class="app-path">
<div class="header markdown">
<h3>Path to Production</h3>
<h3>Design DevOps</h3>
</div>

<mat-toolbar>
Expand Down
2 changes: 2 additions & 0 deletions src/app/presentation/design/path/path.component.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
.app-path {
margin-top: 66px;

#pipe {
position: relative;
float: right;
Expand Down
3 changes: 1 addition & 2 deletions src/app/presentation/design/path/path.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ const originPipeLine = [
id: 1,
title: 'Process',
items: [
// tslint:disable-next-line:max-line-length
'Commit Code',
'PUSH Hooks',
'RUN CI',
Expand Down Expand Up @@ -211,7 +210,7 @@ export class PathComponent implements OnInit {
}

resetAll() {
this.pipeData = originPipeLine;
this.pipeData = JSON.parse(JSON.stringify(originPipeLine));
this.maxLength = this.getMaxLength(originPipeLine);
this.fillDefaultValue();
this.storage.set('ledge.path', this.pipeData).subscribe(() => {});
Expand Down

0 comments on commit 4a2cc42

Please sign in to comment.