Skip to content

Commit

Permalink
Merge pull request #508 from rahulramakrishnan3/release-3.0.0
Browse files Browse the repository at this point in the history
bug fix
  • Loading branch information
Cafnanc authored Jun 27, 2024
2 parents a997b7a + 51581a6 commit 9276dfa
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
8 changes: 3 additions & 5 deletions src/app/core/services/db/db.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,29 +5,27 @@ import { Storage } from '@ionic/storage-angular';
providedIn: 'root',
})
export class DbService {
private _storage: Storage;

constructor(private storage: Storage) {
}

//Initialize DB
async init() {
const storage = await this.storage.create();
this._storage = storage;
}

//Add item in DB
async setItem(key,value) {
return await this._storage.set(key, value);
return await this.storage.set(key, value);
}

//Read item from DB
async getItem(key) {
return await this._storage.get(key);
return await this.storage.get(key);
}

//Clear the DB
async clear() {
return await this._storage.clear();
return await this.storage.clear();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export class ManageSessionComponent implements OnInit {
sortingData: any;
setPaginatorToFirstpage:any = false;
columnData = [
{ name: 'id', displayName: 'Session Id', type: 'text'},
{ name: 'title', displayName: 'Session name', type: 'text', sortingData: [{ sort_by: 'title', order: 'ASC', label: 'A -> Z' }, { sort_by: 'title', order: 'DESC', label: 'Z -> A' }] },
{ name: 'type', displayName: 'Type', type: 'text' },
{ name: 'mentor_name', displayName: 'Mentor', type: 'text' },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
</ion-col>
</ion-row>
</ion-grid>
<div *ngIf="!data?.length && isLoaded">
<div *ngIf="totalCount == 0">
<app-no-data-found [messageHeader]="'NO_MENTORS_AVAILABLE'"> </app-no-data-found>
</div>
</ion-content>

0 comments on commit 9276dfa

Please sign in to comment.