Fixes after review

This commit is contained in:
Piotr Pekala 2019-06-04 06:24:46 -07:00
parent 2a56441ce9
commit ceafe49ebd
5 changed files with 6 additions and 5 deletions

View File

@ -184,8 +184,8 @@ import { AdbutlerComponent } from './components/adbutler/adbutler.component';
import { ConsoleService } from './services/settings/console.service';
import { DefaultConsoleService } from './services/settings/default-console.service';
import { NodeCreatedLabelStylesFixer } from './components/project-map/helpers/node-created-label-styles-fixer';
import { NonNegativeValidator } from './validators/NonNegativeValidator';
import { RotationValidator } from './validators/RotationValidator';
import { NonNegativeValidator } from './validators/non-negative-validator';
import { RotationValidator } from './validators/rotation-validator';
if (environment.production) {
Raven.config('https://b2b1cfd9b043491eb6b566fd8acee358@sentry.io/842726', {

View File

@ -12,8 +12,8 @@ import { LineElement } from '../../../../cartography/models/drawings/line-elemen
import { RectElement } from '../../../../cartography/models/drawings/rect-element';
import { FormGroup, FormBuilder, FormControl, Validators } from '@angular/forms';
import { ToasterService } from '../../../../services/toaster.service';
import { NonNegativeValidator } from '../../../../validators/NonNegativeValidator';
import { RotationValidator } from '../../../../validators/RotationValidator';
import { NonNegativeValidator } from '../../../../validators/non-negative-validator';
import { RotationValidator } from '../../../../validators/rotation-validator';
@Component({
selector: 'app-style-editor',
@ -58,6 +58,7 @@ export class StyleEditorDialogComponent implements OnInit {
this.element.stroke_width = this.drawing.element.stroke_width;
}
if (this.element.stroke_width === undefined) this.element.stroke_width = 0;
this.formGroup.controls['borderWidth'].setValue(this.element.stroke_width);
this.formGroup.controls['rotation'].setValue(this.drawing.rotation);
}

View File

@ -10,7 +10,7 @@ import { DrawingsDataSource } from '../../../../cartography/datasources/drawings
import { TextElement } from '../../../../cartography/models/drawings/text-element';
import { FormBuilder, FormGroup, FormControl, Validators } from '@angular/forms';
import { ToasterService } from '../../../../services/toaster.service';
import { RotationValidator } from '../../../../validators/RotationValidator';
import { RotationValidator } from '../../../../validators/rotation-validator';
@Component({
selector: 'app-text-editor',