Change add-assignee button to spot-button in work package table, too

pull/10484/head
Benjamin Bädorf 3 years ago
parent 401c4a42b7
commit 6c70396a83
No known key found for this signature in database
GPG Key ID: 069CA2D117AB5CCF
  1. 74
      frontend/src/app/features/work-packages/components/wp-inline-create/wp-inline-create.component.html
  2. 6
      frontend/src/app/features/work-packages/components/wp-relations/wp-relations-create/wp-relation-create.template.html

@ -1,41 +1,45 @@
<ng-container *ngIf="canAdd || canReference"> <ng-container *ngIf="canAdd || canReference">
<tr *ngIf="mode === 'inactive'" <tr
class="wp-inline-create-button-row hide-when-print"> *ngIf="mode === 'inactive'"
<td [attr.colspan]="colspan" class="wp-inline-create-button-row hide-when-print"
class="wp-inline-create-button-td -no-highlighting -no-ellipsis"> >
<div class="wp-inline-create-button"> <td
<button [attr.colspan]="colspan"
*ngIf="canAdd" class="wp-inline-create-button-td"
type="button" >
class="wp-inline-create--add-link" <button
[class.wp-inline-create--split-link]="hasReferenceClass" *ngIf="canAdd"
[opAutofocus]="focus" type="button"
(click)="handleAddRowClick()" class="spot-button spot-button_basic spot-button_main"
[attr.aria-label]="text.create" [opAutofocus]="focus"
aria-haspopup="true" (click)="handleAddRowClick()"
> [attr.aria-label]="text.create"
<op-icon icon-classes="icon icon-add"></op-icon> aria-haspopup="true"
<span [textContent]="text.create"></span> >
</button> <span class="spot-icon spot-icon_add"></span>
<ng-container *ngIf="canReference"> <span [textContent]="text.create"></span>
<button </button>
type="button" <button
class="wp-inline-create--reference-link wp-inline-create--split-link" *ngIf="canReference"
(click)="handleReferenceClick()" type="button"
[attr.aria-label]="text.create" class="spot-button spot-button_basic spot-button_main"
aria-haspopup="true" (click)="handleReferenceClick()"
> [attr.aria-label]="text.create"
<op-icon icon-classes="icon icon-link"></op-icon> aria-haspopup="true"
<span [textContent]="text.reference"></span> >
</button> <span class="spot-icon spot-icon_link"></span>
</ng-container> <span [textContent]="text.reference"></span>
</div> </button>
</td> </td>
</tr> </tr>
<tr *ngIf="hasReferenceClass && mode === 'reference'" <tr
class="wp-inline-create-button-row hide-when-print"> *ngIf="hasReferenceClass && mode === 'reference'"
<td [attr.colspan]="colspan" class="wp-inline-create-button-row hide-when-print"
class="wp-inline-reference-row-td -no-highlighting"> >
<td
[attr.colspan]="colspan"
class="wp-inline-reference-row-td -no-highlighting"
>
<ng-container *ngComponentOutlet="referenceClass; injector: injector"></ng-container> <ng-container *ngComponentOutlet="referenceClass; injector: injector"></ng-container>
</td> </td>
</tr> </tr>

@ -2,15 +2,15 @@
<div class="wp-relations-create-button hide-when-print" <div class="wp-relations-create-button hide-when-print"
*ngIf="!showRelationsCreateForm"> *ngIf="!showRelationsCreateForm">
<div class="grid-block"> <div class="grid-block">
<div class="grid-content collapse wp-inline-create-button"> <div class="grid-content collapse">
<button <button
type="button" type="button"
class="op-link wp-inline-create--add-link relation-create" class="spot-button spot-button_basic spot-button_main"
opAutofocus opAutofocus
(click)="toggleRelationsCreateForm()" (click)="toggleRelationsCreateForm()"
id="relation--add-relation" id="relation--add-relation"
> >
<op-icon icon-classes="icon icon-add"></op-icon> <span class="spot-icon spot-icon_add"></span>
<span [textContent]="text.addNewRelation"></span> <span [textContent]="text.addNewRelation"></span>
</button> </button>
</div> </div>

Loading…
Cancel
Save