Commit 994b457b authored by Samuel Schepp's avatar Samuel Schepp

Rename boolean-selector-input to boolean-input

parent b10d45c2
Pipeline #17273 passed with stages
in 7 minutes and 55 seconds
......@@ -48,7 +48,7 @@ import {HttpClientMockService} from './services/httpclient-mock/http-client-mock
import {MultiModelInputComponent} from './components/add-edit/common/multi-model-input/multi-model-input.component';
import {SingleModelInputComponent} from './components/add-edit/common/single-model-input/single-model-input.component';
import {InlineConfirmationComponent} from './components/common/inline-confirmation/inline-confirmation.component';
import {BooleanSelectorInputComponent} from './components/add-edit/common/boolean-selector-input/boolean-selector-input.component';
import {BooleanInputComponent} from './components/add-edit/common/boolean-input/boolean-input.component';
import { DateInputComponent } from './components/add-edit/common/date-input/date-input.component';
import {ContextMenuModule} from 'ngx-contextmenu';
import {TagInputComponent} from './components/add-edit/common/tag-input/tag-input.component';
......@@ -95,7 +95,7 @@ export function testModule(): NgModule {
SingleModelInputComponent,
DateInputComponent,
InlineConfirmationComponent,
BooleanSelectorInputComponent,
BooleanInputComponent,
TagInputComponent,
ContactInputComponent,
SingleEnumInputComponent,
......@@ -167,7 +167,7 @@ export function testModule(): NgModule {
SingleModelInputComponent,
DateInputComponent,
InlineConfirmationComponent,
BooleanSelectorInputComponent,
BooleanInputComponent,
TagInputComponent,
ContactInputComponent,
SingleEnumInputComponent,
......
......@@ -26,7 +26,7 @@
<div class="form-group row">
<label class="col-3 col-form-label">Active</label>
<div class="col-9">
<app-boolean-selector-input [(active)]="content.active" falseLabel="Inactive" trueLabel="Active"></app-boolean-selector-input>
<app-boolean-input [(active)]="content.active" falseLabel="Inactive" trueLabel="Active"></app-boolean-input>
</div>
</div>
......@@ -89,4 +89,4 @@
</div>
</div>
<app-add-edit-bottom-view [modelDefinition]="modelDefinition"></app-add-edit-bottom-view>
\ No newline at end of file
<app-add-edit-bottom-view [modelDefinition]="modelDefinition"></app-add-edit-bottom-view>
......@@ -87,7 +87,7 @@
<div class="form-group row">
<label class="col-3 col-form-label">Active</label>
<div class="col-9">
<app-boolean-selector-input [(active)]="poi.active" falseLabel="Inactive" trueLabel="Active"></app-boolean-selector-input>
<app-boolean-input [(active)]="poi.active" falseLabel="Inactive" trueLabel="Active"></app-boolean-input>
</div>
</div>
......
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { BooleanSelectorInputComponent } from './boolean-selector-input.component';
import { BooleanInputComponent } from './boolean-input.component';
import {testModule} from '../../../../app.module';
describe('BooleanSelectorInputComponent', () => {
let component: BooleanSelectorInputComponent;
let fixture: ComponentFixture<BooleanSelectorInputComponent>;
describe('BooleanInputComponent', () => {
let component: BooleanInputComponent;
let fixture: ComponentFixture<BooleanInputComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule(testModule())
......@@ -13,7 +13,7 @@ describe('BooleanSelectorInputComponent', () => {
}));
beforeEach(() => {
fixture = TestBed.createComponent(BooleanSelectorInputComponent);
fixture = TestBed.createComponent(BooleanInputComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
......
import {Component, EventEmitter, Input, OnInit, Output} from '@angular/core';
@Component({
selector: 'app-boolean-selector-input',
templateUrl: './boolean-selector-input.component.html',
styleUrls: ['./boolean-selector-input.component.css'],
selector: 'app-boolean-input',
templateUrl: './boolean-input.component.html',
styleUrls: ['./boolean-input.component.css'],
})
export class BooleanSelectorInputComponent {
export class BooleanInputComponent {
@Input() active: boolean;
@Output() activeChange = new EventEmitter<boolean>();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment