mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-12 17:04:57 +00:00
Fix document list code style (tslint)
This commit is contained in:
parent
1fa7a4466b
commit
a4ac5edbec
@ -113,7 +113,7 @@
|
||||
[ngForTemplate]="emptyFolderTemplate">
|
||||
</template>
|
||||
<img *ngIf="!emptyFolderTemplate"
|
||||
[src]="__baseUrl + '/img/document-list.empty-folder.png'">
|
||||
[src]="baseComponentPath + '/img/document-list.empty-folder.png'">
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
@ -53,7 +53,7 @@ export class DocumentList implements OnInit, AfterViewChecked, AfterContentInit,
|
||||
|
||||
DEFAULT_ROOT_FOLDER: string = '/Sites/swsdp/documentLibrary';
|
||||
|
||||
__baseUrl = __moduleName.replace('/components/document-list.js', '');
|
||||
baseComponentPath = __moduleName.replace('/components/document-list.js', '');
|
||||
|
||||
@Input()
|
||||
navigate: boolean = true;
|
||||
@ -164,7 +164,7 @@ export class DocumentList implements OnInit, AfterViewChecked, AfterContentInit,
|
||||
model: a,
|
||||
node: node,
|
||||
subject: this.contextActionHandler
|
||||
}
|
||||
};
|
||||
});
|
||||
}
|
||||
}
|
||||
@ -367,7 +367,7 @@ export class DocumentList implements OnInit, AfterViewChecked, AfterContentInit,
|
||||
let entry = node.entry;
|
||||
|
||||
if (entry.isFolder) {
|
||||
return `${this.__baseUrl}/img/ft_ic_folder.svg`;
|
||||
return `${this.baseComponentPath}/img/ft_ic_folder.svg`;
|
||||
}
|
||||
|
||||
if (entry.isFile) {
|
||||
@ -380,11 +380,11 @@ export class DocumentList implements OnInit, AfterViewChecked, AfterContentInit,
|
||||
|
||||
if (entry.content && entry.content.mimeType) {
|
||||
let icon = this._alfrescoService.getMimeTypeIcon(entry.content.mimeType);
|
||||
return `${this.__baseUrl}/img/${icon}`;
|
||||
return `${this.baseComponentPath}/img/${icon}`;
|
||||
}
|
||||
}
|
||||
|
||||
return `${this.__baseUrl}/img/ft_ic_miscellaneous.svg`;
|
||||
return `${this.baseComponentPath}/img/ft_ic_miscellaneous.svg`;
|
||||
}
|
||||
|
||||
return null;
|
||||
|
@ -34,8 +34,6 @@ declare let AlfrescoApi: any;
|
||||
@Injectable()
|
||||
export class AlfrescoService {
|
||||
|
||||
private _baseUrlPath: string = '/alfresco/api/-default-/public/alfresco/versions/1';
|
||||
|
||||
mimeTypeIcons: any = {
|
||||
'image/png': 'ft_ic_raster_image.svg',
|
||||
'image/jpeg': 'ft_ic_raster_image.svg',
|
||||
|
Loading…
x
Reference in New Issue
Block a user