Skip to content
This repository has been archived by the owner on May 7, 2021. It is now read-only.

Commit

Permalink
fix(queryPage): add title truncate, fix workitem cell css
Browse files Browse the repository at this point in the history
  • Loading branch information
sahil143 authored and sudsen committed Oct 23, 2018
1 parent ca8cb69 commit 6582474
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,7 @@
.current-query {
color: @color-pf-blue-500;
}

work-item-cell {
max-width: ~'calc(e("100% - 20px"))';
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,14 @@
[class.pointer]="row.hasChildren"
[class.click-disable]="!row.hasChildren"
(click)="onExploration(row)"></span>
<span *ngIf="context ==='query' && !row.hasChildren"
class="fa fa-angle-right margin-left-10 icon__disabled padding-v-5 pointer"
style="cursor: not-allowed"
></span>
<a class="fa fa-list-alt margin-left-5 padding-v-5 pointer"
placement="right"
tooltip="Open Detail View"
[routerLink]="context === 'list' ? ['detail', row.number] : ['../', 'detail', row.number]"></a>
</div>
</div>
<!-- Status -->

<!-- Status -->
<div class="f8-planner-cell__state"
*ngIf="col === 'state'">
<span class="padding-right-5 padding-top-4"
Expand Down
8 changes: 4 additions & 4 deletions src/app/effects/work-item.effects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Injectable } from '@angular/core';
import { ActivatedRoute, Router } from '@angular/router';
import { Actions, Effect } from '@ngrx/effects';
import { select, Store } from '@ngrx/store';
import { Observable, of as ObservableOf } from 'rxjs';
import { Observable, of } from 'rxjs';
import { catchError, map, mergeMap, switchMap } from 'rxjs/operators';
import { cleanObject } from '../models/common.model';
import { FilterService } from '../services/filter.service';
Expand Down Expand Up @@ -120,7 +120,7 @@ export class WorkItemEffects {
this.router.navigateByUrl(document.location.pathname + '/detail/' + wItem.number,
{relativeTo: this.route});
}
return ObservableOf(new WorkItemActions.AddSuccess(wItem));
return of(new WorkItemActions.AddSuccess(wItem));
}
}),
catchError(err => this.errHandler.handleError(
Expand Down Expand Up @@ -323,7 +323,7 @@ export class WorkItemEffects {
wp.state.space.links.self, workItem,
reorderPayload.destinationWorkitemID, reorderPayload.direction
) :
ObservableOf(workitem);
of(workitem);
}),
map(w => {
let wi = this.resolveWorkItems([w], wp.state)[0];
Expand Down Expand Up @@ -366,7 +366,7 @@ export class WorkItemEffects {
const payload = wp.payload;
const state = wp.state;
if (state.workItems.nextLink == '') {
return Observable.of(
return of(
new WorkItemActions.GetMoreWorkItemsSuccess({ workItems: [], nextLink: '' })
);
}
Expand Down

0 comments on commit 6582474

Please sign in to comment.