From bd74956cb7f64eccaf1f839569cd3df1800011a6 Mon Sep 17 00:00:00 2001 From: William Brawner Date: Sat, 18 Jul 2020 21:57:42 +0000 Subject: [PATCH] Rename add-edit-category component to category-form Signed-off-by: William Brawner --- src/app/app.module.ts | 4 ++-- .../category-form.component.css} | 0 .../category-form.component.html} | 0 .../category-form.component.spec.ts} | 12 ++++++------ .../category-form.component.ts} | 8 ++++---- .../new-category/new-category.component.html | 2 +- 6 files changed, 13 insertions(+), 13 deletions(-) rename src/app/categories/{add-edit-category/add-edit-category.component.css => category-form/category-form.component.css} (100%) rename src/app/categories/{add-edit-category/add-edit-category.component.html => category-form/category-form.component.html} (100%) rename src/app/categories/{add-edit-category/add-edit-category.component.spec.ts => category-form/category-form.component.spec.ts} (51%) rename src/app/categories/{add-edit-category/add-edit-category.component.ts => category-form/category-form.component.ts} (88%) diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 4fe7559..59b54d3 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -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, diff --git a/src/app/categories/add-edit-category/add-edit-category.component.css b/src/app/categories/category-form/category-form.component.css similarity index 100% rename from src/app/categories/add-edit-category/add-edit-category.component.css rename to src/app/categories/category-form/category-form.component.css diff --git a/src/app/categories/add-edit-category/add-edit-category.component.html b/src/app/categories/category-form/category-form.component.html similarity index 100% rename from src/app/categories/add-edit-category/add-edit-category.component.html rename to src/app/categories/category-form/category-form.component.html diff --git a/src/app/categories/add-edit-category/add-edit-category.component.spec.ts b/src/app/categories/category-form/category-form.component.spec.ts similarity index 51% rename from src/app/categories/add-edit-category/add-edit-category.component.spec.ts rename to src/app/categories/category-form/category-form.component.spec.ts index b8ac206..fecc145 100644 --- a/src/app/categories/add-edit-category/add-edit-category.component.spec.ts +++ b/src/app/categories/category-form/category-form.component.spec.ts @@ -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; +describe('CategoryFormComponent', () => { + let component: CategoryFormComponent; + let fixture: ComponentFixture; beforeEach(async(() => { TestBed.configureTestingModule({ - declarations: [ AddEditCategoryComponent ] + declarations: [ CategoryFormComponent ] }) .compileComponents(); })); beforeEach(() => { - fixture = TestBed.createComponent(AddEditCategoryComponent); + fixture = TestBed.createComponent(CategoryFormComponent); component = fixture.componentInstance; fixture.detectChanges(); }); diff --git a/src/app/categories/add-edit-category/add-edit-category.component.ts b/src/app/categories/category-form/category-form.component.ts similarity index 88% rename from src/app/categories/add-edit-category/add-edit-category.component.ts rename to src/app/categories/category-form/category-form.component.ts index 85f6a8c..957fe4e 100644 --- a/src/app/categories/add-edit-category/add-edit-category.component.ts +++ b/src/app/categories/category-form/category-form.component.ts @@ -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; diff --git a/src/app/categories/new-category/new-category.component.html b/src/app/categories/new-category/new-category.component.html index c262365..99517b6 100644 --- a/src/app/categories/new-category/new-category.component.html +++ b/src/app/categories/new-category/new-category.component.html @@ -1 +1 @@ - +