Merge "To optimize the shared module and apply it into the page"
authorVijay Venkatesh Kumar <vv770d@att.com>
Tue, 14 Jan 2020 23:02:47 +0000 (23:02 +0000)
committerGerrit Code Review <gerrit@onap.org>
Tue, 14 Jan 2020 23:02:47 +0000 (23:02 +0000)
1  2 
components/datalake-handler/admin/src/src/app/core/services/rest-api.service.ts

@@@ -126,41 -144,15 +144,15 @@@ export class RestApiService 
    /*
      Database
    */
+   public getAllDbs(): Observable<Db[]> {
+     return this.http
+       .get<Db[]>(prefix + "dbs/list?isDb=true")
+       .pipe(retry(1), catchError(this.handleError));
+   }
    getDbEncryptList(flag): Observable<any> {
      return this.http
 -      .get(prefix + "dbs/list?tool=" + flag)
 +      .get(prefix + "dbs/list?isDb=" + flag)
        .pipe(retry(1), map(this.extractData), catchError(this.handleError));
    }