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 { CategoriesComponent } from './categories/categories.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 { CategoryListComponent } from './categories/category-list/category-list.component';
|
||||
import { LoginComponent } from './users/login/login.component';
|
||||
|
@ -67,7 +67,7 @@ export const CustomCurrencyMaskConfig: CurrencyMaskConfig = {
|
|||
AddEditTransactionComponent,
|
||||
CategoriesComponent,
|
||||
CategoryDetailsComponent,
|
||||
AddEditCategoryComponent,
|
||||
CategoryFormComponent,
|
||||
NewCategoryComponent,
|
||||
CategoryListComponent,
|
||||
LoginComponent,
|
||||
|
|
|
@ -1,20 +1,20 @@
|
|||
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { AddEditCategoryComponent } from './add-edit-category.component';
|
||||
import { CategoryFormComponent } from './category-form.component';
|
||||
|
||||
describe('AddEditCategoryComponent', () => {
|
||||
let component: AddEditCategoryComponent;
|
||||
let fixture: ComponentFixture<AddEditCategoryComponent>;
|
||||
describe('CategoryFormComponent', () => {
|
||||
let component: CategoryFormComponent;
|
||||
let fixture: ComponentFixture<CategoryFormComponent>;
|
||||
|
||||
beforeEach(async(() => {
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [ AddEditCategoryComponent ]
|
||||
declarations: [ CategoryFormComponent ]
|
||||
})
|
||||
.compileComponents();
|
||||
}));
|
||||
|
||||
beforeEach(() => {
|
||||
fixture = TestBed.createComponent(AddEditCategoryComponent);
|
||||
fixture = TestBed.createComponent(CategoryFormComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
|
@ -4,11 +4,11 @@ import { AppComponent } from 'src/app/app.component';
|
|||
import { TWIGS_SERVICE, TwigsService } from 'src/app/shared/twigs.service';
|
||||
|
||||
@Component({
|
||||
selector: 'app-add-edit-category',
|
||||
templateUrl: './add-edit-category.component.html',
|
||||
styleUrls: ['./add-edit-category.component.css']
|
||||
selector: 'app-category-form',
|
||||
templateUrl: './category-form.component.html',
|
||||
styleUrls: ['./category-form.component.css']
|
||||
})
|
||||
export class AddEditCategoryComponent implements OnInit {
|
||||
export class CategoryFormComponent implements OnInit {
|
||||
|
||||
@Input() budgetId: number;
|
||||
@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