Skip to content

Commit

Permalink
Rename the components to remove redundant 'Service' in the naming
Browse files Browse the repository at this point in the history
  • Loading branch information
kristelaK committed Nov 12, 2024
1 parent 65ee673 commit 283a253
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -203,14 +203,14 @@ import { AppNameUniqueDirective } from './directives/app-name-unique.directive/a
import { CfUserPermissionDirective } from './directives/cf-user-permission/cf-user-permission.directive';
import { ApplicationStateService } from './services/application-state.service';
import { CloudFoundryUserProvidedServicesService } from './services/cloud-foundry-user-provided-services.service';
import { TableCellServiceLastServiceBindingComponent } from './components/list/list-types/cf-spaces-service-instances/table-cell-last-service-binding/table-cell-last-service-binding.component';
import { TableCellLastServiceBindingComponent } from './components/list/list-types/cf-spaces-service-instances/table-cell-last-service-binding/table-cell-last-service-binding.component';
import { ServiceInstanceLastServiceBindingComponent } from './components/service-instance-last-service-binding/service-instance-last-service-binding.component';

const cfListTableCells: Type<TableCellCustom<any>>[] = [
TableCellServiceInstanceAppsAttachedComponent,
TableCellServiceComponent,
TableCellServiceLastOpComponent,
TableCellServiceLastServiceBindingComponent,
TableCellLastServiceBindingComponent,
TableCellRouteAppsAttachedComponent,
CfOrgPermissionCellComponent,
CfSpacePermissionCellComponent,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ import {
TableCellServiceLastOpComponent,
} from '../cf-spaces-service-instances/table-cell-service-last-op/table-cell-service-last-op.component';
import { TableCellServiceComponent } from '../cf-spaces-service-instances/table-cell-service/table-cell-service.component';
import { TableCellServiceLastServiceBindingComponent } from '../cf-spaces-service-instances/table-cell-last-service-binding/table-cell-last-service-binding.component';
import { TableCellLastServiceBindingComponent } from '../cf-spaces-service-instances/table-cell-last-service-binding/table-cell-last-service-binding.component';

interface CanCache {
[spaceGuid: string]: Observable<boolean>;
Expand Down Expand Up @@ -90,7 +90,7 @@ export class CfServiceInstancesListConfigBase implements IListConfig<APIResource
{
columnId: 'lastServiceBinding',
headerCell: () => 'Last Service Binding',
cellComponent: TableCellServiceLastServiceBindingComponent,
cellComponent: TableCellLastServiceBindingComponent,
cellFlex: '2'
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ import {
import { BaseTestModulesNoShared } from '../../../../../../../../core/test-framework/core-test.helper';
import { EntityMonitorFactory } from '../../../../../../../../store/src/monitors/entity-monitor.factory.service';
import { ServiceInstanceLastOpComponent } from '../../../../service-instance-last-op/service-instance-last-op.component';
import { TableCellServiceLastServiceBindingComponent } from './table-cell-last-service-binding.component';
import { TableCellLastServiceBindingComponent } from './table-cell-last-service-binding.component';

describe('TableCellServiceLastServiceBindingComponent', () => {
let component: TableCellServiceLastServiceBindingComponent;
let fixture: ComponentFixture<TableCellServiceLastServiceBindingComponent>;
describe('TableCellLastServiceBindingComponent', () => {
let component: TableCellLastServiceBindingComponent
let fixture: ComponentFixture<TableCellLastServiceBindingComponent>;

beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
declarations: [
TableCellServiceLastServiceBindingComponent,
TableCellLastServiceBindingComponent,
ServiceInstanceLastOpComponent,
BooleanIndicatorComponent
],
Expand All @@ -26,7 +26,7 @@ describe('TableCellServiceLastServiceBindingComponent', () => {
}));

beforeEach(() => {
fixture = TestBed.createComponent(TableCellServiceLastServiceBindingComponent);
fixture = TestBed.createComponent(TableCellLastServiceBindingComponent);
component = fixture.componentInstance;
component.row = {
entity: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { userProvidedServiceInstanceEntityType } from '../../../../../../cf-enti
templateUrl: './table-cell-last-service-binding.component.html',
styleUrls: ['./table-cell-last-service-binding.component.scss']
})
export class TableCellServiceLastServiceBindingComponent extends TableCellCustom<APIResource<IServiceInstance>> implements OnInit {
export class TableCellLastServiceBindingComponent extends TableCellCustom<APIResource<IServiceInstance>> implements OnInit {
// tslint:disable-next-line:ban-types
isUserProvidedServiceInstance: Boolean;

Expand Down

0 comments on commit 283a253

Please sign in to comment.