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

Commit

Permalink
feat: added link to create a container in container list
Browse files Browse the repository at this point in the history
  • Loading branch information
Leonardo Chaia committed Oct 25, 2018
1 parent 9e53f19 commit 60c79a7
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
<div fxLayout="column"
style="padding:16px;">
<div style="padding:16px;">

<div style="margin-bottom:16px; text-align: right">
<button type="button"
mat-raised-button
color="primary"
(click)="createContainer()">
<mat-icon>add_to_queue</mat-icon>
Create Container
</button>
</div>

<div>
<tim-container-list></tim-container-list>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { Component } from '@angular/core';
import { TimoneerTabs } from '../../timoneer-tabs';
import { TabService } from '../../tabs/tab.service';

@Component({
selector: 'tim-container-list-container',
Expand All @@ -7,4 +9,9 @@ import { Component } from '@angular/core';
})
export class ContainerListContainerComponent {

constructor(private readonly tab: TabService) { }

public createContainer() {
this.tab.add(TimoneerTabs.DOCKER_CONTAINER_NEW);
}
}

0 comments on commit 60c79a7

Please sign in to comment.