Skip to content

Commit

Permalink
add add-button
Browse files Browse the repository at this point in the history
  • Loading branch information
LiWeiYeh committed Nov 24, 2022
1 parent 0b40e95 commit 5af5d65
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
<div *ngIf="data$ | async as data">
<div>
<h2>Active Projects</h2>
<app-button-add></app-button-add>
</div>
<app-box-table [data]="data" sortable sortBy="Name" order="desc">
<ng-template boxTableHeader>
<th>Projects</th>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<button pButton type="button" label="" icon="pi pi-plus"></button>
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { Component } from '@angular/core';

@Component({
selector: 'app-button-add',
templateUrl: './button-add.component.html',
styleUrls: ['./button-add.component.scss'],
})
export class ButtonAddComponent {}
3 changes: 3 additions & 0 deletions src/app/shared/shared.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import { TabViewModule } from 'primeng/tabview';
import { ButtonModule } from 'primeng/button';
import { ButtonEditComponent } from './button-components/button-edit/button-edit.component';
import { ButtonDeleteComponent } from './button-components/button-delete/button-delete.component';
import { ButtonAddComponent } from './button-components/button-add/button-add.component';

@NgModule({
declarations: [
Expand All @@ -51,6 +52,7 @@ import { ButtonDeleteComponent } from './button-components/button-delete/button-
BoxTabComponent,
ButtonEditComponent,
ButtonDeleteComponent,
ButtonAddComponent,
],
imports: [
CommonModule,
Expand Down Expand Up @@ -84,6 +86,7 @@ import { ButtonDeleteComponent } from './button-components/button-delete/button-
BoxTabComponent,
ButtonEditComponent,
ButtonDeleteComponent,
ButtonAddComponent,
],
})
export class SharedModule {}

0 comments on commit 5af5d65

Please sign in to comment.