Skip to content

Commit

Permalink
Bug fixes, Ui changes
Browse files Browse the repository at this point in the history
  • Loading branch information
anudeep-ks committed Sep 30, 2024
1 parent ff52467 commit b4bb179
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 19 deletions.
18 changes: 8 additions & 10 deletions src/app/app.module.ts
Original file line number Diff line number Diff line change
@@ -1,39 +1,37 @@
import { NgModule } from '@angular/core';
import { Router, NavigationEnd } from '@angular/router';
import { BrowserModule } from '@angular/platform-browser';
import { HttpClientModule } from '@angular/common/http';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { ToastrModule } from 'ngx-toastr';

import { AppRoutingModule } from './app-routing.module';
import { AuthModule } from './modules/auth/auth.module';
import { SharedModule } from './modules/shared/shared.module';
import { TemplateModule } from './modules/template/template.module';
import { MaterialModule } from './material.module';

import { AppComponent } from './app.component';

import { MatFormFieldModule } from '@angular/material/form-field';
import { MatDividerModule } from '@angular/material/divider';
import { MatTableModule } from '@angular/material/table';
import { MatPaginatorModule } from '@angular/material/paginator';
import { ToastrModule } from 'ngx-toastr';
import { AppComponent } from './app.component';

@NgModule({
declarations: [
AppComponent
],
],
imports: [
BrowserModule,
HttpClientModule,
FormsModule,
ReactiveFormsModule,
BrowserAnimationsModule,
AppRoutingModule,
HttpClientModule,
AuthModule,
SharedModule,
TemplateModule,
MaterialModule,
BrowserAnimationsModule,
MatFormFieldModule,
FormsModule,
ReactiveFormsModule,
MatDividerModule,
MatTableModule,
MatPaginatorModule,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export class TemplateSelectionComponent implements OnInit {
this.toaster.success('Downloaded successfully');
this.selectFile = "";
} else {
alert("Please select a file to download");
this.toaster.error('No file found ', "Please select a file");
}
}

Expand Down Expand Up @@ -217,7 +217,7 @@ export class TemplateSelectionComponent implements OnInit {
}
);
} else {
alert(`Please select a file to ${action}`);
this.toaster.error('No file found ', "Please select a file");
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,6 @@ mat-paginator {
border-top: 1px solid #e0e0e0;
}
.back-button {
color: rgb(0, 116, 182, 1) !important;
color: rgb(0, 116, 182, 1);
/* font-weight: bold; */
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div class="mat-elevation-z8">

<button mat-button color="primary" (click)="goBack()" class="back-button">
<button mat-button (click)="goBack()" class="back-button">
<mat-icon>arrow_back</mat-icon> Back
</button>

Expand All @@ -26,15 +26,20 @@ <h2>List of Solutions</h2>
<td mat-cell *matCellDef="let element"> {{element.solutionName}} </td>
</ng-container>

<ng-container matColumnDef="solution_created_date">
<th mat-header-cell *matHeaderCellDef mat-sort-header> Solution Created Date </th>
<td mat-cell *matCellDef="let element"> {{element.solution_created_date}} </td>
</ng-container>

<!-- Start Date Column -->
<ng-container matColumnDef="startDate">
<th mat-header-cell *matHeaderCellDef mat-sort-header> Start Date </th>
<th mat-header-cell *matHeaderCellDef mat-sort-header> Survey Start Date </th>
<td mat-cell *matCellDef="let element"> {{element.startDate | date:'medium'}} </td>
</ng-container>

<!-- End Date Column -->
<ng-container matColumnDef="endDate">
<th mat-header-cell *matHeaderCellDef mat-sort-header> End Date </th>
<th mat-header-cell *matHeaderCellDef mat-sort-header> Survey End Date </th>
<td mat-cell *matCellDef="let element"> {{element.endDate | date:'medium'}} </td>
</ng-container>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { Location } from '@angular/common';
templateUrl: 'template-solution-list.component.html',
})
export class TemplateSolutionListComponent implements AfterViewInit, OnInit {
displayedColumns: string[] = ['solutionId', 'solutionName', 'startDate', 'endDate', 'action'];
displayedColumns: string[] = ['solutionId', 'solutionName','solution_created_date', 'startDate', 'endDate', 'action'];
dataSource = new MatTableDataSource<any>();
resourceType: string = ""

Expand All @@ -39,6 +39,7 @@ export class TemplateSolutionListComponent implements AfterViewInit, OnInit {
this.dataSource.data = response.SolutionList.map((item: any) => ({
solutionId: item.SOLUTION_ID,
solutionName: item.SOLUTION_NAME,
solution_created_date: item.SOLUTION_CREATED_DATE,
startDate: item.START_DATE,
endDate: item.END_DATE
}));
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="template-success-container">
<button mat-button color="primary" (click)="goBack()" class="back-button">
<button mat-button (click)="goBack()" class="back-button">
<mat-icon>arrow_back</mat-icon> Back
</button>
<div class="header-container">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,6 @@ p {
}

.back-button {
color: rgb(0, 116, 182, 1) !important;
color: rgb(0, 116, 182, 1);
/* font-weight: bold; */
}

0 comments on commit b4bb179

Please sign in to comment.