fix send options viewsLeft (#11594)
This commit is contained in:
parent
783305696a
commit
288b0cff2f
|
@ -27,16 +27,16 @@ import { SendFormContainer } from "../../send-form-container";
|
||||||
templateUrl: "./send-options.component.html",
|
templateUrl: "./send-options.component.html",
|
||||||
standalone: true,
|
standalone: true,
|
||||||
imports: [
|
imports: [
|
||||||
|
CardComponent,
|
||||||
|
CheckboxModule,
|
||||||
|
CommonModule,
|
||||||
|
FormFieldModule,
|
||||||
|
IconButtonModule,
|
||||||
|
JslibModule,
|
||||||
|
ReactiveFormsModule,
|
||||||
SectionComponent,
|
SectionComponent,
|
||||||
SectionHeaderComponent,
|
SectionHeaderComponent,
|
||||||
TypographyModule,
|
TypographyModule,
|
||||||
JslibModule,
|
|
||||||
CardComponent,
|
|
||||||
FormFieldModule,
|
|
||||||
ReactiveFormsModule,
|
|
||||||
IconButtonModule,
|
|
||||||
CheckboxModule,
|
|
||||||
CommonModule,
|
|
||||||
],
|
],
|
||||||
})
|
})
|
||||||
export class SendOptionsComponent implements OnInit {
|
export class SendOptionsComponent implements OnInit {
|
||||||
|
@ -61,10 +61,12 @@ export class SendOptionsComponent implements OnInit {
|
||||||
return this.config.mode === "edit" && this.sendOptionsForm.value.maxAccessCount !== null;
|
return this.config.mode === "edit" && this.sendOptionsForm.value.maxAccessCount !== null;
|
||||||
}
|
}
|
||||||
|
|
||||||
get viewsLeft(): number {
|
get viewsLeft() {
|
||||||
return this.sendOptionsForm.value.maxAccessCount
|
return String(
|
||||||
|
this.sendOptionsForm.value.maxAccessCount
|
||||||
? this.sendOptionsForm.value.maxAccessCount - this.sendOptionsForm.value.accessCount
|
? this.sendOptionsForm.value.maxAccessCount - this.sendOptionsForm.value.accessCount
|
||||||
: 0;
|
: 0,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
|
|
Loading…
Reference in New Issue