mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2024-12-20 05:27:56 +00:00
Fixes after review
This commit is contained in:
parent
2a56441ce9
commit
ceafe49ebd
@ -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', {
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user