Make 'Log time' link accessible via keyboard

pull/8412/head
Inga Mai 4 years ago
parent 4a05697704
commit 09daf621c8
  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