mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
Adjust ADF to latest JS-API version (#8882)
* Bump js-api version * Fix imports * Fix content-services unit tests * Fix process-services unit tests * [ci:force] Trigger CI * Fix code smells * Fix orderBy param * Fix code smells * Fix failing unit tests * Bump js-api version and align with new changes * Remove dangling coma * Fix delete return type * Add correct date format in task filters e2es * Fix typing in task filter sorting * Fix activiti content api import * Add null check for has avatar * Make User class instead of type * Fix user type in comment model * Fix sonar cloud issue * Type fixes * Update js-api version
This commit is contained in:
@@ -18,14 +18,14 @@
|
||||
import { User } from './general-user.model';
|
||||
|
||||
export class CommentModel {
|
||||
id: number;
|
||||
id: string | number;
|
||||
message: string;
|
||||
created: Date;
|
||||
createdBy: User;
|
||||
isSelected: boolean;
|
||||
|
||||
get hasAvatarPicture(): boolean {
|
||||
return !!(this.createdBy['pictureId'] || this.createdBy['avatarId']);
|
||||
return !!this.createdBy && !!(this.createdBy['pictureId'] || this.createdBy['avatarId']);
|
||||
}
|
||||
|
||||
get userDisplayName(): string {
|
||||
@@ -51,7 +51,7 @@ export class CommentModel {
|
||||
return result.toUpperCase();
|
||||
}
|
||||
|
||||
constructor(obj?: any) {
|
||||
constructor(obj?: Partial<CommentModel>) {
|
||||
if (obj) {
|
||||
this.id = obj.id;
|
||||
this.message = obj.message;
|
||||
|
Reference in New Issue
Block a user