From f5868618b79b39130b32d0df1bed570bcfe60b24 Mon Sep 17 00:00:00 2001 From: Willem Dantuma Date: Tue, 18 Feb 2020 22:02:34 +0100 Subject: [PATCH] Add isEditable --- projects/common/src/fm/models/item.ts | 57 ++++++++++++++------------- 1 file changed, 29 insertions(+), 28 deletions(-) diff --git a/projects/common/src/fm/models/item.ts b/projects/common/src/fm/models/item.ts index 60163ed..c6b46f4 100644 --- a/projects/common/src/fm/models/item.ts +++ b/projects/common/src/fm/models/item.ts @@ -1,28 +1,29 @@ -import { IListItem } from './list.item'; - -export interface IItem extends IListItem { - parentCode?: string; - geometry?: any; - tags:string[], - data?:any -} - -export class Item implements IItem { - public code?:string; - public parentCode?:string; - public tags:string[]; - public geometry?:any; - public url?: string; - public name?: string; - public created?: Date; - public updated?: Date; - public dataDate?: Date; - public itemType?: string; - public sourceTask?: string; - public size?: number; - public state?: number; - public data?:any; - - constructor() { - } -} +import { IListItem } from './list.item'; + +export interface IItem extends IListItem { + parentCode?: string; + geometry?: any; + tags:string[], + data?:any +} + +export class Item implements IItem { + public code?:string; + public parentCode?:string; + public tags:string[]; + public geometry?:any; + public url?: string; + public name?: string; + public created?: Date; + public updated?: Date; + public dataDate?: Date; + public itemType?: string; + public sourceTask?: string; + public size?: number; + public state?: number; + public data?:any; + public isEditable:boolean; + + constructor() { + } +}