-
Notifications
You must be signed in to change notification settings - Fork 0
Added filter for projects and tasks #29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,15 +18,54 @@ | |
| </ion-header> | ||
|
|
||
| <ion-content> | ||
| <ion-item> | ||
| <ion-searchbar [(ngModel)]="searchName" (ionInput)="getDataFromApi()"></ion-searchbar> | ||
| </ion-item> | ||
| <ion-item> | ||
| <button ion-button (click)="this.showFilter=!this.showFilter">{{showFilter ? 'Hide' : 'Show'}} filters</button> | ||
| </ion-item> | ||
| <ion-item *ngIf="this.showFilter"> | ||
| <ion-label>Id</ion-label> | ||
| <ion-input [(ngModel)]="searchId" (input)="getDataFromApi()"></ion-input> | ||
| </ion-item> | ||
| <ion-item *ngIf="this.showFilter"> | ||
| <ion-label>Status</ion-label> | ||
| <ion-select [(ngModel)]="searchDone" (ionChange)="getDataFromApi()"> | ||
| <ion-option value="all" selected="true">All</ion-option> | ||
| <ion-option value="done">Open</ion-option> | ||
| <ion-option value="notDone">Closed</ion-option> | ||
| </ion-select> | ||
| </ion-item> | ||
| <ion-item *ngIf="this.showFilter"> | ||
| <ion-label>Priority</ion-label> | ||
| <ion-select [(ngModel)]="searchPriority" (ionChange)="getDataFromApi()"> | ||
| <ion-option value="all" selected="true">All</ion-option> | ||
| <ion-option value="0">0</ion-option> | ||
| <ion-option value="1">1</ion-option> | ||
| <ion-option value="2">2</ion-option> | ||
| <ion-option value="3">3</ion-option> | ||
| <ion-option value="4">4</ion-option> | ||
| <ion-option value="5">5</ion-option> | ||
| <ion-option value="6">6</ion-option> | ||
| <ion-option value="7">7</ion-option> | ||
| <ion-option value="8">8</ion-option> | ||
| <ion-option value="9">9</ion-option> | ||
| <ion-option value="10">10</ion-option> | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It works for me but i thinks its better to just able to
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'll leave it as a filter by for now because I cannot think of a way to have the layout allow for an intuitive way to sort by parameter without clogging the UI with lot of junk |
||
| </ion-select> | ||
| </ion-item> | ||
| <ion-item *ngIf="this.showFilter"> | ||
| <ion-label>Assigned to</ion-label> | ||
| <ion-input [(ngModel)]="searchAssigned" (input)="getDataFromApi()"></ion-input> | ||
| </ion-item> | ||
| <ion-list inset> | ||
| <ion-item-sliding *ngFor="let item of items"> | ||
| <ion-item (click)="itemTapped($event, item)"> | ||
| <h3 *ngIf="item.done" color="danger"> | ||
| <ion-icon name="checkmark" color="danger"></ion-icon> | ||
| {{item.name}} | ||
| #{{item.id}} {{item.name}} | ||
| </h3> | ||
| <h3 *ngIf="!item.done"> | ||
| {{item.name}} | ||
| #{{item.id}} {{item.name}} | ||
| </h3> | ||
| <p>{{item.description}}</p> | ||
| </ion-item> | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The user don't know the ID and can't read it. You need to put the ID in the list and the detail of the project if you want filter by ID
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added the ID to the view