src => this.sources.push({id: +src.id(), label: src.source()}),
_ => {},
() => {
- this.sources = this.sources.sort((a, b) =>
+ this.sources = this.sources.sort((a, b) =>
a.label.toLowerCase() < b.label.toLowerCase() ? -1 : 1
);
}
ngOnInit() {}
- // When we have breaker text, limit the vertical expansion of the
+ // When we have breaker text, limit the vertical expansion of the
// text area to the size of the data plus a little padding.
rowCount(): number {
if (this.record && this.record.breakerText) {
- return this.record.breakerText.split(/\n/).length + 2;
+ return this.record.breakerText.split(/\n/).length + 2;
}
return 40;
}
import {NgModule} from '@angular/core';
-import {StaffCommonModule} from '@eg/staff/common.module';
+import {StaffCommonModule} from '@eg/staff/common.module';
import {MarcEditorComponent} from './editor.component';
import {MarcRichEditorComponent} from './rich-editor.component';
import {MarcFlatEditorComponent} from './flat-editor.component';