mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-19 17:14:57 +00:00
fix lint erros
This commit is contained in:
parent
37c09bdd6b
commit
1fa7a4466b
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "ng2-alfresco-search",
|
"name": "ng2-alfresco-search",
|
||||||
"description": "Alfresco Angular2 Search Component",
|
"description": "Alfresco Angular2 Search Component",
|
||||||
"version": "0.1.19",
|
"version": "0.1.20",
|
||||||
"author": "Alfresco Software, Ltd.",
|
"author": "Alfresco Software, Ltd.",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"clean": "rm -rf dist node_modules typings",
|
"clean": "rm -rf dist node_modules typings",
|
||||||
|
@ -106,7 +106,7 @@ export class AlfrescoSearchAutocompleteComponent implements OnChanges {
|
|||||||
.getLiveSearchResults(searchTerm)
|
.getLiveSearchResults(searchTerm)
|
||||||
.subscribe(
|
.subscribe(
|
||||||
results => {
|
results => {
|
||||||
this.results = results.list.entries
|
this.results = results.list.entries;
|
||||||
this.errorMessage = null;
|
this.errorMessage = null;
|
||||||
},
|
},
|
||||||
error => {
|
error => {
|
||||||
|
@ -26,8 +26,7 @@ declare let __moduleName: string;
|
|||||||
@Component({
|
@Component({
|
||||||
moduleId: __moduleName,
|
moduleId: __moduleName,
|
||||||
selector: 'alfresco-search',
|
selector: 'alfresco-search',
|
||||||
styles: [
|
styles: [],
|
||||||
],
|
|
||||||
templateUrl: './alfresco-search.component.html',
|
templateUrl: './alfresco-search.component.html',
|
||||||
providers: [AlfrescoService],
|
providers: [AlfrescoService],
|
||||||
pipes: [AlfrescoPipeTranslate]
|
pipes: [AlfrescoPipeTranslate]
|
||||||
@ -43,11 +42,9 @@ export class AlfrescoSearchComponent implements OnChanges, OnInit {
|
|||||||
|
|
||||||
route: any[] = [];
|
route: any[] = [];
|
||||||
|
|
||||||
constructor(
|
constructor(private _alfrescoService: AlfrescoService,
|
||||||
private _alfrescoService: AlfrescoService,
|
private translate: AlfrescoTranslationService,
|
||||||
private translate: AlfrescoTranslationService,
|
@Optional() params: RouteParams) {
|
||||||
@Optional() params: RouteParams)
|
|
||||||
{
|
|
||||||
translate.addTranslationFolder('node_modules/ng2-alfresco-search');
|
translate.addTranslationFolder('node_modules/ng2-alfresco-search');
|
||||||
|
|
||||||
this.results = null;
|
this.results = null;
|
||||||
@ -86,7 +83,7 @@ export class AlfrescoSearchComponent implements OnChanges, OnInit {
|
|||||||
.getLiveSearchResults(searchTerm)
|
.getLiveSearchResults(searchTerm)
|
||||||
.subscribe(
|
.subscribe(
|
||||||
results => {
|
results => {
|
||||||
this.results = results.list.entries
|
this.results = results.list.entries;
|
||||||
this.errorMessage = null;
|
this.errorMessage = null;
|
||||||
},
|
},
|
||||||
error => {
|
error => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user