| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| |
| <!-- TODO use listClass="history-dropdown" for custom styling --> |
| <menu-button label="{{'topMenu.undo' | translate}}" [subItems]="undoItems" iconClass="fa fa-arrow-left" |
| class="history-menu" [class.disabled]="!undoItems.length" [isDisabled]="!undoItems.length" |
| listClass="history-dropdown" (buttonClick)="undoLatest()" (selectItem)="undo($event)"> |
| </menu-button> |
| <menu-button label="{{'topMenu.redo' | translate}}" [subItems]="redoItems" iconClass="fa fa-arrow-right" |
| class="history-menu" [class.disabled]="!redoItems.length" [isDisabled]="!redoItems.length" |
| listClass="history-dropdown" (buttonClick)="redoLatest()" (selectItem)="redo($event)"> |
| </menu-button> |
| <menu-button label="{{'topMenu.history' | translate}}" [subItems]="historyItems" iconClass="fa fa-history" |
| class="history-menu" [class.disabled]="!historyItems.length" [isDisabled]="!historyItems.length" |
| listClass="history-dropdown" [isRightAlign]="true"></menu-button> |
| <menu-button label="{{'topMenu.filter' | translate}}" iconClass="fa fa-filter" |
| (buttonClick)="openLogIndexFilter()"></menu-button> |
| <menu-button *ngIf="!captureSeconds" label="{{'filter.capture' | translate}}" iconClass="fa fa-caret-right" |
| (buttonClick)="startCapture()"></menu-button> |
| <menu-button *ngIf="captureSeconds" label="{{captureSeconds | timerSeconds}}" iconClass="fa fa-stop stop-icon" |
| (buttonClick)="stopCapture()"></menu-button> |
| <menu-button label="{{'topMenu.refresh' | translate}}" iconClass="fa fa-refresh" |
| (buttonClick)="refresh()"></menu-button> |
| <modal-dialog |
| class="log-index-filter" |
| [visible]="isLogIndexFilterDisplayed$ | async" |
| [showCloseBtn]="false" |
| (onCloseRequest)="closeLogIndexFilter()" |
| title="{{'logIndexFilter.title' | translate}}"> |
| <header> |
| <dropdown-button [options]="clustersListItems$ | async" (selectItem)="onSelectCluster($event)" |
| label="{{'logIndexFilter.selectCluster' | translate}}" buttonClass="btn-link"></dropdown-button> |
| </header> |
| <section> |
| <p>{{'logIndexFilter.caption' | translate}}</p> |
| <form [formGroup]="settingsForm"> |
| <log-index-filter formControlName="logIndexFilter" (changeIsSubmitDisabled)="setModalSubmitDisabled($event)" [activeClusterName]="selectedClusterName$ | async"></log-index-filter> |
| </form> |
| </section> |
| <footer> |
| <button class="btn btn-secondary" (click)="closeLogIndexFilter()">{{'modal.cancel' | translate}}</button> |
| <button class="btn btn-primary" (click)="saveLogIndexFilter()" [disabled]="isModalSubmitDisabled"> |
| {{'modal.save' | translate}} |
| </button> |
| </footer> |
| </modal-dialog> |