Skip to content

Commit fdeb3c1

Browse files
fit2botw940853815
andauthored
fix: conditionally display batch command zone based on settings (#1412)
Co-authored-by: wangruidong <940853815@qq.com>
1 parent 04c1d51 commit fdeb3c1

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

src/app/elements/content/content-footer/content-footer.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div class="content-footer">
1+
<div *ngIf="showBatchCommand" class="content-footer">
22
<div *ngIf="showCommandZone" class="batch-command-zone">
33
<div class="command-header">
44
<button nzTrigger="click" [nzDropdownMenu]="menu" nz-button nz-dropdown

src/app/elements/content/content-footer/content-footer.component.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@ export class ElementContentFooterComponent implements OnInit, OnDestroy {
4444
) {
4545
}
4646

47+
get showBatchCommand() {
48+
return (
49+
this.settingSvc.setting.commandExecution
50+
);
51+
}
52+
4753
async ngOnInit() {
4854
this.viewList = this.viewSrv.viewList;
4955
this.viewListSub = this.viewSrv.connectViewCount$.subscribe(count => {

0 commit comments

Comments
 (0)