Skip to content

Commit

Permalink
Merge pull request #102 from Sohith-code/cbrelease-4.8.20-custom-regi…
Browse files Browse the repository at this point in the history
…stration-sohith

Removed startdate, enddate and gradedroup, and other minror fixes
  • Loading branch information
vishnubansaltarento authored Nov 26, 2024
2 parents ddf53dd + d1694d7 commit 7070c22
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,8 @@
<div class="right-sidenav-footer flex items-center justify-end gap-4 items-center px-5 pt-3 pb-5 bg-white">
<ng-container *ngIf="openMode !== 'viewMode'">
<button mat-button class="cancelButton" (click)="closeNaveBar()">Cancel</button>
<button mat-flat-button class="mat-btn-flat" [disabled]="isLoading || this.organisationForm.invalid"
<button mat-flat-button class="mat-btn-flat"
[disabled]="isLoading || this.organisationForm.invalid || !selectedLogo"
(click)="onSubmitCreateOrganization()">{{openMode
=== 'editMode' ? 'Update' : 'Add'}}</button>
</ng-container>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<div class="px-5 pt-6 mb-24">
<ng-container>
<form [formGroup]="selfRegistrationForm">
<div class="flex items-center justify-between ">
<!-- <div class="flex items-center justify-between ">
<div class="flex flex-column gap-1 w-full formfield-rounded-full max-w-240">
<div class="flex items-center gap-1 required">
<span class="lable">Start Date</span>
Expand All @@ -33,7 +33,7 @@
<mat-datepicker #endDate></mat-datepicker>
</mat-form-field>
</div>
</div>
</div> -->

<ng-container *ngIf="!initialData.QRGenerated">
<div class="flex justify-center items-center">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Component, EventEmitter, Input, OnDestroy, OnInit, Output } from '@angular/core'
import { FormBuilder, FormGroup, Validators } from '@angular/forms'
import { FormBuilder, FormGroup } from '@angular/forms'
import { CreateMDOService } from '../create-mdo.services'
import { CustomRegistrationQRCodeResponse } from '../interface/interfaces'
import { MatSnackBar } from '@angular/material/snack-bar'
Expand Down Expand Up @@ -43,8 +43,8 @@ export class CustomSelfRegistrationComponent implements OnInit, OnDestroy {

initializeForm(): void {
this.selfRegistrationForm = this.formBuilder.group({
startDate: ['', [Validators.required]],
endDate: ['', [Validators.required]]
startDate: ['',],
endDate: ['',]
})

if (this.initialData.qrRegistrationLink && this.initialData.startDateRegistration && this.initialData.endDateRegistration) {
Expand Down Expand Up @@ -85,8 +85,8 @@ export class CustomSelfRegistrationComponent implements OnInit, OnDestroy {

this.isLoading = true
const payload = {
registrationStartDate: (Math.floor(this.selfRegistrationForm.controls['startDate'].value.getTime())),
registrationEndDate: (Math.floor(this.selfRegistrationForm.controls['endDate'].value.getTime())),
// registrationStartDate: (Math.floor(this.selfRegistrationForm.controls['startDate'].value.getTime())),
// registrationEndDate: (Math.floor(this.selfRegistrationForm.controls['endDate'].value.getTime())),
orgId: this.initialData.orgId
}
this.createMdoService.generateSelfRegistrationQRCode(payload).subscribe({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@
Management</button>
<button mat-menu-item (click)="goToRoute('designation_master', row)">Manage
Designations</button>
<button mat-menu-item
(click)="goToRoute('grade_setting', row)">Grades/Group</button>
<!-- <button mat-menu-item
(click)="goToRoute('grade_setting', row)">Grades/Group</button> -->
</ng-template>
</mat-menu>
</ng-container>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -291,8 +291,8 @@ export class UIDirectoryTableComponent implements OnInit, AfterViewInit, OnChang
})
}

organizationCreatedEmit(event: any) {
this.searchByEnterKey.emit(event.orgName)
organizationCreatedEmit(_event: any) {
this.searchByEnterKey.emit('')

}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<mat-icon>vertical_align_bottom</mat-icon> Consumption Report
</button>
</div>
<div style="margin-right: 7px;" *ngIf="!isReports">
<div *ngIf="!isReports">
<button mat-raised-button type="button" *ngIf="needCreateUser"
class="text-white ws-mat-primary-background text-white margin-right-l custom-btn"
(click)="gotoCreateUser()">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,12 @@ export class UsersComponent implements OnInit, AfterViewInit, OnDestroy {
render: true,
enabled: true,
},
{
name: 'Grade/Group setting',
key: 'grade_setting',
render: true,
enabled: true,
},
// {
// name: 'Grade/Group setting',
// key: 'grade_setting',
// render: true,
// enabled: true,
// },
]

const url = this.router.url.split('/')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export class DirectoryViewComponent implements OnInit {
this.currentFilter = params['tab']
this.currentTab = params['tab']
if (this.currentFilter === null || this.currentFilter === undefined) {
this.currentFilter = 'mdo'
this.currentFilter = 'organisation'
}
})
this.getAllDepartmentsHeaderAPI()
Expand Down Expand Up @@ -93,7 +93,7 @@ export class DirectoryViewComponent implements OnInit {
columns: [
{ displayName: 'Organisation', key: 'organisation' },
{ displayName: 'Type', key: 'type' },
{ displayName: 'Created By', key: 'createdBy' },
// { displayName: 'Created By', key: 'createdBy' },
{ displayName: 'Created On', key: 'createdOn' },
],
actions: [{ name: '', label: '', icon: 'remove_red_eye', type: 'menu' }],
Expand Down Expand Up @@ -332,6 +332,7 @@ export class DirectoryViewComponent implements OnInit {

}
})
this.data = [...this.data]
this.tabledata.loader = false
// this.data.sort((a: any, b: any) => {
// const textA = a.mdo.trimStart().toUpperCase()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ export class DirectoryService {
status: 1,
},
sortBy: {
orgName: 'asc',
createdDate: 'desc',
},
query: queryText,
limit: 500,
limit: 1000,
},
}
return this.http.post<any>(`${API_END_POINTS.GET_ALL_DEPARTMENT_KONG}`, req1)
Expand All @@ -53,9 +53,9 @@ export class DirectoryService {
request: {
filters,
sortBy: {
orgName: 'asc',
createdDate: 'desc',
},
limit: 500,
limit: 1000,
},
}
return this.http.post<any>(`${API_END_POINTS.GET_ALL_DEPARTMENT_KONG}`, req)
Expand Down

0 comments on commit 7070c22

Please sign in to comment.