Skip to content

Commit

Permalink
fix new calender white screen error
Browse files Browse the repository at this point in the history
  • Loading branch information
khalifan-kfan committed Jan 16, 2024
1 parent ae49008 commit 94b262e
Show file tree
Hide file tree
Showing 5 changed files with 380 additions and 380 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<h2>{{'Crops Seasonal calender' | translate }}</h2>
<div class="box">
<h2>{{'Calender name' | translate}}</h2>
<input class="inputField" [(ngModel)]="calenderTitle" placeholder={{Season of 85}} />
<input class="inputField" [(ngModel)]="calenderTitle" placeholder="Season of 85" />
<seasonal-calendar-error-display [displayError]="showMessageFlag && calenderTitle===''" errorMsg="Please add the calender title">
</seasonal-calendar-error-display>
</div>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Component, Input, OnInit } from '@angular/core';
import { Router } from '@angular/router';
import { PicsaTranslateService } from '@picsa/shared/modules';

// import { PicsaTranslateService } from '@picsa/shared/modules';
import { SeasonCalenderService } from './../../services/calender.data.service';

@Component({
Expand All @@ -12,7 +12,7 @@ import { SeasonCalenderService } from './../../services/calender.data.service';
export class CreateCalendarComponent implements OnInit {
data;

constructor(private router: Router, private service: SeasonCalenderService, translateService:PicsaTranslateService) {
constructor(private router: Router, private service: SeasonCalenderService) {
this.generateCalendarMonths();
this.data = this.router?.getCurrentNavigation()?.extras?.state;
//console.log(this.data);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div class="page-content">
<div class="create-button">
<button class="" mat-button mat-raised-button routerLink="create" color="primary">{{ 'Create new calender' | translate}}</button>
<button class="" mat-button mat-raised-button routerLink="/seasonal-calendar/create" color="primary">{{ 'Create new calender' | translate}}</button>
</div>
<h2>{{ 'Categories' | translate }}</h2>
<div class="categories-list">
Expand Down
Loading

0 comments on commit 94b262e

Please sign in to comment.