Skip to content

Commit

Permalink
Fix multi action buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowbas authored and bas080 committed Feb 10, 2025
1 parent cb46f0b commit 07704a5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/app/app.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,8 @@ <h3 class="noMessageSelectedNotification">No Message Selected</h3>
<td colspan="3">
<span class="preview">{{item.plaintext}} </span>
</td>
<td colspan="3"></td>
<td aria-hidden colspan="4"></td>
<td aria-hidden *ngIf="displayFolderColumn"></td>
</tr>
</tbody>
</ng-template>
Expand Down
6 changes: 4 additions & 2 deletions src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ const TOOLBAR_LIST_BUTTON_WIDTH = 30;
templateUrl: 'app.component.html',
})
export class AppComponent implements OnInit, AfterViewInit, CanvasTableSelectListener, DoCheck {
showSelectOperations: boolean;
showSelectMarkOpMenu: boolean;


Expand Down Expand Up @@ -379,6 +378,10 @@ export class AppComponent implements OnInit, AfterViewInit, CanvasTableSelectLis
: 0;
}

get showSelectOperations() {
return !this.rowsSelectionModel.isEmpty() || !this.rowSelectionModel.isEmpty()
}

ngDoCheck(): void {
if (!this.usewebsocketsearch && this.searchService.api && this.xapianDocCount) {
this.dynamicSearchFieldPlaceHolder = 'Start typing to search ' +
Expand Down Expand Up @@ -984,7 +987,6 @@ export class AppComponent implements OnInit, AfterViewInit, CanvasTableSelectLis
}

this.canvastable.rows.rowSelected(rowIndex, columnIndex, multiSelect);
this.showSelectOperations = this.canvastable.rows.anySelected();

if (this.canvastable.rows.hasChanges) {
this.updateUrlFragment(this.canvastable.rows.getRowMessageId(rowIndex));
Expand Down

0 comments on commit 07704a5

Please sign in to comment.