Remove additional information block as it is unused

pull/7125/head
Henriette Dinger 6 years ago
parent 534db542ba
commit ba1fe0e942
  1. 11
      frontend/src/app/components/wp-card-view/wp-card-view.component.html
  2. 12
      frontend/src/app/components/wp-card-view/wp-card-view.component.sass
  3. 18
      frontend/src/app/components/wp-card-view/wp-card-view.component.ts

@ -32,17 +32,6 @@
[hidden]="wp.isNew"
[textContent]="text.wpAddedBy(wp)">
</div>
<div class="work-package--card--additional-info-container">
<div *ngFor="let column of availableColumns"
class="work-package--card--additional-info">
<span [textContent]="column.name + ':'"
class="work-package--card--additional-info-attribute"></span>
<wp-edit-field [workPackageId]="wp.id"
[fieldName]="column.id">
</wp-edit-field>
</div>
</div>
</wp-edit-field-group>
<user-avatar *ngIf="hasAssignee(wp)"
[attr.data-user]="wp.assignee.$href"

@ -21,21 +21,9 @@
bottom: 5px
right: 0
.work-package--card--additional-info-container
margin-top: 15px
.work-package--card--additional-info
display: flex
line-height: 22px
wp-edit-field
width: initial
.work-package--card--additional-info-attribute
max-width: 50%
@include text-shortener
margin-right: 5px
.wp-inline-create-button
font-size: 0.9rem
padding-top: 1rem

@ -82,7 +82,6 @@ export class WorkPackageCardViewComponent extends WorkPackageEmbeddedTableCompon
public query:QueryResource;
public workPackages:any[];
public columns:QueryColumn[];
public availableColumns:QueryColumn[];
public text = {
addNewCard: this.I18n.t('js.card.add_new'),
wpAddedBy: (wp:WorkPackageResource) =>
@ -117,16 +116,9 @@ export class WorkPackageCardViewComponent extends WorkPackageEmbeddedTableCompon
this.registerCreationCallback();
combine(
this.querySpace.columns,
this.querySpace.results
)
.values$()
.pipe(
this.querySpace.results.values$().pipe(
untilComponentDestroyed(this)
)
.subscribe(([columns, results]) => {
).subscribe((results) => {
if (this.activeInlineCreateWp) {
this.workPackages = [...results.$embedded.elements, this.activeInlineCreateWp];
} else {
@ -134,12 +126,6 @@ export class WorkPackageCardViewComponent extends WorkPackageEmbeddedTableCompon
}
this.removeDragged();
this.columns = columns;
this.availableColumns = this.columns.filter(function (column) {
return column.id !== 'id' && column.id !== 'subject' && column.id !== 'author';
});
this.cdRef.detectChanges();
});
}

Loading…
Cancel
Save