From 092e07c54575b0cb29d24f887a7203285f3f410e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Popovics=20Andr=C3=A1s?= Date: Wed, 1 Nov 2017 09:38:51 +0000 Subject: [PATCH] [ADF-1600] Change translation (#2574) * Change translation * Add browser test runner to scripts * Adding option to hide the My Files option * Add documentation and fix property's name --- .../app/components/files/files.component.html | 2 +- docs/sites-dropdown.component.md | 7 ++++ .../sites-dropdown.component.html | 7 +++- .../sites-dropdown.component.spec.ts | 31 ++++++++++++++ .../site-dropdown/sites-dropdown.component.ts | 12 +++--- .../src/i18n/de.json | 2 +- .../src/i18n/en.json | 2 +- .../src/i18n/es.json | 2 +- .../src/i18n/fr.json | 2 +- .../src/i18n/it.json | 2 +- .../src/i18n/ja.json | 2 +- .../src/i18n/nb.json | 2 +- .../src/i18n/nl.json | 2 +- .../src/i18n/pt-BR.json | 2 +- .../src/i18n/ru.json | 2 +- .../src/i18n/zh-CN.json | 2 +- .../src/components/upload-button.component.ts | 2 +- scripts/README.md | 9 +++- scripts/npm-build-all.sh | 41 +++++++++++++++---- 19 files changed, 105 insertions(+), 28 deletions(-) diff --git a/demo-shell-ng2/src/app/components/files/files.component.html b/demo-shell-ng2/src/app/components/files/files.component.html index 14c272ecc8..77fa0e3f60 100644 --- a/demo-shell-ng2/src/app/components/files/files.component.html +++ b/demo-shell-ng2/src/app/components/files/files.component.html @@ -1,6 +1,6 @@
- +
diff --git a/docs/sites-dropdown.component.md b/docs/sites-dropdown.component.md index d522b1169f..8c4969a61f 100644 --- a/docs/sites-dropdown.component.md +++ b/docs/sites-dropdown.component.md @@ -9,6 +9,7 @@ Displays a dropdown menu to show and interact with the sites of the current user - [Basic Usage](#basic-usage) + * [Properties](#properties) * [Events](#events) @@ -23,6 +24,12 @@ Displays a dropdown menu to show and interact with the sites of the current user ``` +### Properties + +| Attribute | Type | Default | Description | +| --- | --- | --- | --- | +| hideMyFiles | boolean | false | Hide the "My Files" option added to the list by default | + ### Events | Name | Returned Type | Description | diff --git a/ng2-components/ng2-alfresco-documentlist/src/components/site-dropdown/sites-dropdown.component.html b/ng2-components/ng2-alfresco-documentlist/src/components/site-dropdown/sites-dropdown.component.html index 5050c85add..d15d07f12c 100644 --- a/ng2-components/ng2-alfresco-documentlist/src/components/site-dropdown/sites-dropdown.component.html +++ b/ng2-components/ng2-alfresco-documentlist/src/components/site-dropdown/sites-dropdown.component.html @@ -1,11 +1,14 @@