Skip to content

Commit

Permalink
FEAT: Tooltips on icon-only buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
davidibl committed Mar 23, 2020
1 parent 0bff120 commit ce1b133
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
14 changes: 8 additions & 6 deletions src/app/components/testsuite/testSuite.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,20 +56,22 @@
[type]="1"></xn-json-editor>
</td>
<td class="text-center" style="padding-top:8px;" [ngClass]="item.clazz" (click)="item.showError = true">
<i *xnIfNull="item.result" class="fa fa-question-circle" aria-hidden="true"></i>
<i *xnIfFalse="item.result" class="fa fa-exclamation-triangle" aria-hidden="true"></i>
<i *ngIf="item.result" class="fa fa-check-square" aria-hidden="true"></i>
<div [xnTooltip]="'Teststatus'" [placement]="'top'">
<i *xnIfNull="item.result" class="fa fa-question-circle" aria-hidden="true"></i>
<i *xnIfFalse="item.result" class="fa fa-exclamation-triangle" aria-hidden="true"></i>
<i *ngIf="item.result" class="fa fa-check-square" aria-hidden="true"></i>
</div>
</td>
<td class="button-column">
<xn-button (click)="testCase(item)" class="small">
<xn-button [xnTooltip]="'Test ausführen'" [placement]="'top'" (click)="testCase(item)" class="small">
<i class="fa fa-play" aria-hidden="true"></i></xn-button>
</td>
<td class="button-column">
<xn-button (click)="deleteCase(item)" class="small">
<xn-button [xnTooltip]="'Test löschen'" [placement]="'left'" (click)="deleteCase(item)" class="small">
<i class="fa fa-times" aria-hidden="true"></i></xn-button>
</td>
<td class="button-column">
<xn-button (click)="openInSimulator(item)" class="small">
<xn-button [xnTooltip]="'Daten in Simulation übernehmen'" [placement]="'left'" (click)="openInSimulator(item)" class="small">
<i class="fa fa-flask" aria-hidden="true"></i></xn-button>
</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion src/app/components/workspace/commit.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</div>
<div class="commit-menu" [@slideInOut]="showCommitMenu">
<ul class="toolbar">
<li (click)="checkout()">
<li [xnTooltip]="'Diesen Stand auschecken'" [placement]="'right'" (click)="checkout()">
<small>
<xn-icon [iconClass]="'fa-shopping-cart'"></xn-icon>
</small>
Expand Down
6 changes: 3 additions & 3 deletions src/app/components/workspace/workspace.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
</li>
</ul>
<ul class="toolbar">
<li (click)="refresh()"><small><xn-icon [iconClass]="'fa-refresh'"></xn-icon></small></li>
<li *ngIf="isInFiletreeMode$ | async" (click)="switchViewMode(historyViewmode)">
<li [xnTooltip]="'Aktualisieren'" [placement]="'right'" (click)="refresh()"><small><xn-icon [iconClass]="'fa-refresh'"></xn-icon></small></li>
<li [xnTooltip]="'Historie'" [placement]="'bottom'" *ngIf="isInFiletreeMode$ | async" (click)="switchViewMode(historyViewmode)">
<small><xn-icon [iconClass]="'fa-history'"></xn-icon></small>
</li>
<li *ngIf="isInHistoryMode$ | async" (click)="switchViewMode(filetreeViewmode)">
<li [xnTooltip]="'Dateien'" [placement]="'bottom'" *ngIf="isInHistoryMode$ | async" (click)="switchViewMode(filetreeViewmode)">
<small><xn-icon [iconClass]="'fa-file'"></xn-icon></small>
</li>
</ul>
Expand Down

0 comments on commit ce1b133

Please sign in to comment.