-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dependency: update to angular 11 #308
Conversation
return Array.isArray(this._routerLink) && this._routerLink.length > 0 | ||
? true | ||
: false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note : We could simplify with only return (Array.isArray(this._routerLink) && this._routerLink.length > 0);
) { } | ||
|
||
/** | ||
* hook OnInit | ||
*/ | ||
ngOnInit() { | ||
const initialState: any = this._modalService.config.initialState; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I learn something 👍
if (!locale) { | ||
locale = this._translateService.currentLanguage; | ||
} | ||
|
||
return super.transform(value, format, timezone, locale); | ||
return super.transform(value); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why removing format, timezone, locale
from parameters ? There seem still valid in Angular11
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
@@ -17,7 +17,7 @@ | |||
|
|||
/* tslint:disable:no-unused-variable */ | |||
|
|||
import { TestBed, async, inject } from '@angular/core/testing'; | |||
import { TestBed, inject, waitForAsync } from '@angular/core/testing'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
new import is not used
@@ -40,6 +40,9 @@ import { isEmpty, orderedJsonSchema, removeEmptyValues } from './utils'; | |||
import { LoadTemplateFormComponent } from './widgets/load-template-form/load-template-form.component'; | |||
import { SaveTemplateFormComponent } from './widgets/save-template-form/save-template-form.component'; | |||
|
|||
export interface JSONSchema7 extends JSONSchema7Base { | |||
form: any; | |||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe a space after the interface, as this is not linked to component. Or better in a specific file.
...ero/ng-core/src/lib/record/editor/widgets/load-template-form/load-template-form.component.ts
Outdated
Show resolved
Hide resolved
if (!locale) { | ||
locale = this._translateService.currentLanguage; | ||
} | ||
|
||
return super.transform(value, format, timezone, locale); | ||
return super.transform(value); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
401a731
to
8e77c2e
Compare
Co-Authored-by: Johnny Mariéthoz <Johnny.Mariethoz@rero.ch>
Co-Authored-by: Johnny Mariéthoz Johnny.Mariethoz@rero.ch
Why are you opening this PR?
How to test?
Code review check list