Rename add-edit-category component to category-form
Signed-off-by: William Brawner <me@wbrawner.com>
This commit is contained in:
parent
8fdc60b475
commit
bd74956cb7
6 changed files with 13 additions and 13 deletions
|
@ -25,7 +25,7 @@ import { NewTransactionComponent } from './transactions/new-transaction/new-tran
|
||||||
import { AddEditTransactionComponent } from './transactions/add-edit-transaction/add-edit-transaction.component';
|
import { AddEditTransactionComponent } from './transactions/add-edit-transaction/add-edit-transaction.component';
|
||||||
import { CategoriesComponent } from './categories/categories.component';
|
import { CategoriesComponent } from './categories/categories.component';
|
||||||
import { CategoryDetailsComponent } from './categories/category-details/category-details.component';
|
import { CategoryDetailsComponent } from './categories/category-details/category-details.component';
|
||||||
import { AddEditCategoryComponent } from './categories/add-edit-category/add-edit-category.component';
|
import { CategoryFormComponent } from './categories/category-form/category-form.component';
|
||||||
import { NewCategoryComponent } from './categories/new-category/new-category.component';
|
import { NewCategoryComponent } from './categories/new-category/new-category.component';
|
||||||
import { CategoryListComponent } from './categories/category-list/category-list.component';
|
import { CategoryListComponent } from './categories/category-list/category-list.component';
|
||||||
import { LoginComponent } from './users/login/login.component';
|
import { LoginComponent } from './users/login/login.component';
|
||||||
|
@ -67,7 +67,7 @@ export const CustomCurrencyMaskConfig: CurrencyMaskConfig = {
|
||||||
AddEditTransactionComponent,
|
AddEditTransactionComponent,
|
||||||
CategoriesComponent,
|
CategoriesComponent,
|
||||||
CategoryDetailsComponent,
|
CategoryDetailsComponent,
|
||||||
AddEditCategoryComponent,
|
CategoryFormComponent,
|
||||||
NewCategoryComponent,
|
NewCategoryComponent,
|
||||||
CategoryListComponent,
|
CategoryListComponent,
|
||||||
LoginComponent,
|
LoginComponent,
|
||||||
|
|
|
@ -1,20 +1,20 @@
|
||||||
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||||
|
|
||||||
import { AddEditCategoryComponent } from './add-edit-category.component';
|
import { CategoryFormComponent } from './category-form.component';
|
||||||
|
|
||||||
describe('AddEditCategoryComponent', () => {
|
describe('CategoryFormComponent', () => {
|
||||||
let component: AddEditCategoryComponent;
|
let component: CategoryFormComponent;
|
||||||
let fixture: ComponentFixture<AddEditCategoryComponent>;
|
let fixture: ComponentFixture<CategoryFormComponent>;
|
||||||
|
|
||||||
beforeEach(async(() => {
|
beforeEach(async(() => {
|
||||||
TestBed.configureTestingModule({
|
TestBed.configureTestingModule({
|
||||||
declarations: [ AddEditCategoryComponent ]
|
declarations: [ CategoryFormComponent ]
|
||||||
})
|
})
|
||||||
.compileComponents();
|
.compileComponents();
|
||||||
}));
|
}));
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
fixture = TestBed.createComponent(AddEditCategoryComponent);
|
fixture = TestBed.createComponent(CategoryFormComponent);
|
||||||
component = fixture.componentInstance;
|
component = fixture.componentInstance;
|
||||||
fixture.detectChanges();
|
fixture.detectChanges();
|
||||||
});
|
});
|
|
@ -4,11 +4,11 @@ import { AppComponent } from 'src/app/app.component';
|
||||||
import { TWIGS_SERVICE, TwigsService } from 'src/app/shared/twigs.service';
|
import { TWIGS_SERVICE, TwigsService } from 'src/app/shared/twigs.service';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-add-edit-category',
|
selector: 'app-category-form',
|
||||||
templateUrl: './add-edit-category.component.html',
|
templateUrl: './category-form.component.html',
|
||||||
styleUrls: ['./add-edit-category.component.css']
|
styleUrls: ['./category-form.component.css']
|
||||||
})
|
})
|
||||||
export class AddEditCategoryComponent implements OnInit {
|
export class CategoryFormComponent implements OnInit {
|
||||||
|
|
||||||
@Input() budgetId: number;
|
@Input() budgetId: number;
|
||||||
@Input() title: string;
|
@Input() title: string;
|
|
@ -1 +1 @@
|
||||||
<app-add-edit-category [title]="'Add Category'" [budgetId]="budgetId" [currentCategory]="category"></app-add-edit-category>
|
<app-category-form [title]="'Add Category'" [budgetId]="budgetId" [currentCategory]="category"></app-category-form>
|
||||||
|
|
Loading…
Reference in a new issue