Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search box looses its content when accordion panel is collapsed #47 #48

Merged
merged 1 commit into from
Oct 13, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div class="row">
<div class="col-2">
<ngb-accordion [closeOthers]="true" activeIds="search">
<ngb-accordion [closeOthers]="true" [destroyOnHide]="false" activeIds="search">
<ngb-panel title="Search" id="search">
<ng-template ngbPanelContent>
<jhi-microservice-search (itemSelected)="onMicroserviceSelected($event)">
Expand All @@ -25,14 +25,17 @@
<button class="btn btn-block btn-success btn-sm">Create dependency</button>
</div>
<div class="p-1">
<button class="btn btn-block btn-success btn-sm" disabled>Delete dependency</button>
<button class="btn btn-block btn-success btn-sm" [disabled]="!selection">Delete dependency
</button>
</div>
</ng-template>
</ngb-panel>
<ngb-panel title="Deployments">
<ng-template ngbPanelContent>
<div class="p-1">
<button class="btn btn-block btn-success btn-sm" disabled>Build deployment path</button>
<button class="btn btn-block btn-success btn-sm" [disabled]="!selection"
(click)="buildDeploymentPath()">Build deployment path
</button>
</div>
</ng-template>
</ngb-panel>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,4 +143,6 @@ export class DependencyDashboardComponent implements AfterViewInit, OnDestroy {
this.searchValue = microservice;
this.loadAll();
}

buildDeploymentPath(): void {}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
import { Component, EventEmitter, Input, OnDestroy, OnInit, Output } from '@angular/core';
import { Observable } from 'rxjs';
import { debounceTime, distinctUntilChanged, map, switchMap } from 'rxjs/operators';
import { MicroserviceService } from 'app/entities/microservice/microservice.service';
Expand Down