mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-26 17:24:56 +00:00
fix search and login
This commit is contained in:
parent
c74f9e9fe6
commit
40d8cff331
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "ng2-alfresco-core",
|
"name": "ng2-alfresco-core",
|
||||||
"description": "Alfresco Angular 2 Components core",
|
"description": "Alfresco Angular 2 Components core",
|
||||||
"version": "0.1.6",
|
"version": "0.1.11",
|
||||||
"author": "Alfresco Software, Ltd.",
|
"author": "Alfresco Software, Ltd.",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"typings": "typings install",
|
"typings": "typings install",
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "ng2-alfresco-login",
|
"name": "ng2-alfresco-login",
|
||||||
"description": "Alfresco Angular2 Login Component",
|
"description": "Alfresco Angular2 Login Component",
|
||||||
"version": "0.1.1",
|
"version": "0.1.3",
|
||||||
"author": "Alfresco Software, Ltd.",
|
"author": "Alfresco Software, Ltd.",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"typings": "typings install",
|
"typings": "typings install",
|
||||||
|
@ -78,7 +78,6 @@ export class AlfrescoLoginComponent {
|
|||||||
'required': 'LOGIN.MESSAGES.PASSWORD-REQUIRED'
|
'required': 'LOGIN.MESSAGES.PASSWORD-REQUIRED'
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
this.translationInit(translate);
|
|
||||||
|
|
||||||
this.form.valueChanges.subscribe(data => this.onValueChanged(data));
|
this.form.valueChanges.subscribe(data => this.onValueChanged(data));
|
||||||
|
|
||||||
@ -156,19 +155,4 @@ export class AlfrescoLoginComponent {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Initial configuration for Multi language
|
|
||||||
* @param translate
|
|
||||||
*/
|
|
||||||
translationInit(translate: TranslateService) {
|
|
||||||
this.translate = translate;
|
|
||||||
let userLang = navigator.language.split('-')[0]; // use navigator lang if available
|
|
||||||
userLang = /(fr|en)/gi.test(userLang) ? userLang : 'en';
|
|
||||||
|
|
||||||
this.translate.setDefaultLang(userLang);
|
|
||||||
this.translate.currentLoader.addComponentList('node_modules/ng2-alfresco-login');
|
|
||||||
this.translate.getTranslation(userLang);
|
|
||||||
this.translate.use(userLang);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -1,10 +1,9 @@
|
|||||||
{
|
{
|
||||||
"name": "ng2-alfresco-search",
|
"name": "ng2-alfresco-search",
|
||||||
"description": "Alfresco Angular2 Search Component",
|
"description": "Alfresco Angular2 Search Component",
|
||||||
"version": "0.1.1",
|
"version": "0.1.2",
|
||||||
"author": "Alfresco Software, Ltd.",
|
"author": "Alfresco Software, Ltd.",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"postinstall": "typings install && npm link ../ng2-alfresco-core && npm run build",
|
|
||||||
"typings": "typings install",
|
"typings": "typings install",
|
||||||
"start": "http-server -c-1 -o -p 8875 .",
|
"start": "http-server -c-1 -o -p 8875 .",
|
||||||
"build": "npm run tslint && typings install && rm -rf dist && tsc && npm run copytemplates && license-check",
|
"build": "npm run tslint && typings install && rm -rf dist && tsc && npm run copytemplates && license-check",
|
||||||
@ -59,6 +58,7 @@
|
|||||||
"coveralls": "^2.11.9",
|
"coveralls": "^2.11.9",
|
||||||
"http-server": "0.8.5",
|
"http-server": "0.8.5",
|
||||||
"jasmine-core": "2.4.1",
|
"jasmine-core": "2.4.1",
|
||||||
|
"ng2-alfresco-core": "^0.1.0",
|
||||||
"karma": "~0.13.22",
|
"karma": "~0.13.22",
|
||||||
"karma-chrome-launcher": "~1.0.1",
|
"karma-chrome-launcher": "~1.0.1",
|
||||||
"karma-coverage": "^1.0.0",
|
"karma-coverage": "^1.0.0",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user