mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
Prettier upgrade and e2e type checks (#1522)
* upgrade prettier * noImplicitAny rule * fix type * update tsconfig * upgrade to 150 print width
This commit is contained in:
@@ -30,21 +30,12 @@ export function isLocked(node: { entry: Node }): boolean {
|
||||
|
||||
return (
|
||||
(entry && entry.isLocked) ||
|
||||
(entry.properties &&
|
||||
(entry.properties['cm:lockType'] === 'READ_ONLY_LOCK' ||
|
||||
entry.properties['cm:lockType'] === 'WRITE_LOCK'))
|
||||
(entry.properties && (entry.properties['cm:lockType'] === 'READ_ONLY_LOCK' || entry.properties['cm:lockType'] === 'WRITE_LOCK'))
|
||||
);
|
||||
}
|
||||
|
||||
export function isLibrary(node: { entry: Node | any }): boolean {
|
||||
const { entry } = node;
|
||||
|
||||
return (
|
||||
(entry.guid &&
|
||||
entry.id &&
|
||||
entry.preset &&
|
||||
entry.title &&
|
||||
entry.visibility) ||
|
||||
entry.nodeType === 'st:site'
|
||||
);
|
||||
return (entry.guid && entry.id && entry.preset && entry.title && entry.visibility) || entry.nodeType === 'st:site';
|
||||
}
|
||||
|
Reference in New Issue
Block a user