[ARVADOS-WORKBENCH2] updated: 1.2.0-603-g3341bdb

Git user git at public.curoverse.com
Thu Oct 11 10:04:37 EDT 2018


Summary of changes:
 src/services/search-service/search-service.ts       | 6 ++++--
 src/views-components/search-bar/search-bar-view.tsx | 2 +-
 2 files changed, 5 insertions(+), 3 deletions(-)

       via  3341bdb1fd82bc3302fd9321adcfb5d63e6e5aed (commit)
      from  bf566905797e0fc73029a21457590105838326af (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 3341bdb1fd82bc3302fd9321adcfb5d63e6e5aed
Author: Pawel Kowalczyk <pawel.kowalczyk at contractors.roche.com>
Date:   Thu Oct 11 16:04:20 2018 +0200

    cr changes
    
    Feature #14308
    
    Arvados-DCO-1.1-Signed-off-by: Pawel Kowalczyk <pawel.kowalczyk at contractors.roche.com>

diff --git a/src/services/search-service/search-service.ts b/src/services/search-service/search-service.ts
index 8a218bd..f9392c2 100644
--- a/src/services/search-service/search-service.ts
+++ b/src/services/search-service/search-service.ts
@@ -7,7 +7,7 @@ export class SearchService {
     private savedQueries: string[] = this.getSavedQueries();
 
     saveRecentQuery(query: string) {
-        if (this.recentQueries.length >= 5) {
+        if (this.recentQueries.length >= MAX_NUMBER_OF_RECENT_QUERIES) {
             this.recentQueries.shift();
             this.recentQueries.push(query);
         } else {
@@ -33,4 +33,6 @@ export class SearchService {
         this.savedQueries.splice(id, 1);
         localStorage.setItem('savedQueries', JSON.stringify(this.savedQueries));
     }
-}
\ No newline at end of file
+}
+
+const MAX_NUMBER_OF_RECENT_QUERIES = 5;
\ No newline at end of file
diff --git a/src/views-components/search-bar/search-bar-view.tsx b/src/views-components/search-bar/search-bar-view.tsx
index 8abd2aa..59fe410 100644
--- a/src/views-components/search-bar/search-bar-view.tsx
+++ b/src/views-components/search-bar/search-bar-view.tsx
@@ -44,7 +44,7 @@ const styles: StyleRulesCallback<CssRules> = (theme: ArvadosTheme) => {
         view: {
             position: 'absolute',
             width: '100%',
-            zIndex: 1001
+            zIndex: 1
         }
     };
 };

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list