Merge pull request #8412 from opf/fix/33380/log-time--keyboard-accessible

[33380] Fix: Make 'Log time' link accessible via keyboard
pull/8414/head
Henriette Darge 4 years ago committed by GitHub
commit 734c280d45
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      frontend/src/app/modules/fields/display/field-types/wp-spent-time-display-field.module.ts

@ -33,7 +33,7 @@ import { ProjectResource } from "core-app/modules/hal/resources/project-resource
import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
import * as URI from 'urijs';
import { TimeEntryCreateService } from 'core-app/modules/time_entries/create/create.service';
import {WorkPackageResource} from "core-app/modules/hal/resources/work-package-resource";
import { WorkPackageResource } from "core-app/modules/hal/resources/work-package-resource";
export class WorkPackageSpentTimeDisplayField extends DurationDisplayField {
public text = {
@ -77,7 +77,8 @@ export class WorkPackageSpentTimeDisplayField extends DurationDisplayField {
private appendTimelogLink(element:HTMLElement) {
if (this.resource.logTime) {
const timelogElement = document.createElement('a');
timelogElement.setAttribute('class','icon icon-time');
timelogElement.setAttribute('class', 'icon icon-time');
timelogElement.setAttribute('href', '');
timelogElement.textContent = this.text.logTime;
element.appendChild(timelogElement);

Loading…
Cancel
Save