Skip to content

Commit 59c9630

Browse files
committed
fix(setup): docker image build fix
1 parent 099406f commit 59c9630

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

src/api/docker.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,15 @@ function execTty(id: string, cmd: string, args: string[] = []): Subject<any> {
7171
let msg: TTYMessage = { id: id, type: 'data', data: null, status: 'queued' };
7272
observer.next(msg);
7373

74+
let buildMsg: TTYMessage = {
75+
id: id,
76+
type: 'data',
77+
data: '==> Build Docker Image',
78+
status: 'running'
79+
};
80+
81+
observer.next(buildMsg);
82+
7483
ps.on('data', data => {
7584
let msg: TTYMessage = { id: id, type: 'data', data: data, status: 'running' };
7685
observer.next(msg);

src/app/components/app-terminal/app-terminal.component.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,16 @@ export class AppTerminalComponent implements OnInit {
6565
return cmd;
6666
});
6767
}
68+
69+
this.checkScrollBottom();
70+
}
71+
72+
checkScrollBottom(): void {
73+
// TODO: make this work actually
74+
// const element = window.document.documentElement;
75+
// if (element.scrollTop + element.clientHeight == element.scrollHeight) {
76+
window.scrollTo(0, document.body.scrollHeight);
77+
// }
6878
}
6979

7080
toogleCommand(index: number) {

0 commit comments

Comments
 (0)