set suto to content height of calendar

45001-component-to-show-the-list-of-non-working-days-of-year
bsatarnejad 2 years ago
parent 67f49f38d0
commit a415c9b4fb
  1. 10
      frontend/src/app/shared/components/op-non-working-days-list/op-non-working-days-list.component.sass
  2. 7
      frontend/src/app/shared/components/op-non-working-days-list/op-non-working-days-list.component.ts

@ -7,10 +7,6 @@
&--delete-icon
opacity: 0
&--calendar
min-height: 120px
max-height: 360px
&--add-button
padding: $spot-spacing-0_5 0
@ -25,9 +21,3 @@
.fc-list-empty-cushion
margin: auto !important
.fc-view-harness-active:has(.fc-list-empty)
height: auto !important

@ -32,10 +32,10 @@ import { ConfirmDialogOptions } from '../modals/confirm-dialog/confirm-dialog.mo
export const nonWorkingDaysListSelector = 'op-non-working-days-list';
export interface INonWorkingDay {
id:string|null;
id:string | null;
name:string;
date:string;
_deleted:boolean|null;
_deleted:boolean | null;
}
@Component({
@ -73,6 +73,7 @@ export class OpNonWorkingDaysListComponent implements OnInit {
calendarOptions:CalendarOptions = {
plugins: [listPlugin],
initialView: 'listYear',
contentHeight: 'auto',
headerToolbar: {
right: 'prev,next',
center: '',
@ -158,7 +159,7 @@ export class OpNonWorkingDaysListComponent implements OnInit {
fetchInfo:{ start:Date },
successCallback:(events:EventInput[]) => void,
failureCallback:(error:unknown) => void,
):void|PromiseLike<EventInput[]> {
):void | PromiseLike<EventInput[]> {
this.dayService.requireNonWorkingYear$(fetchInfo.start)
.subscribe(
(days:IDay[]) => {

Loading…
Cancel
Save