add the spent time logo to wp details

pull/8306/head
bsatarnejad 5 years ago committed by Henriette Dinger
parent 973ebd1fac
commit fc54c5162c
  1. 9
      frontend/src/app/modules/fields/display/field-types/wp-spent-time-display-field.module.ts

@ -35,7 +35,8 @@ import * as URI from 'urijs';
export class WorkPackageSpentTimeDisplayField extends DurationDisplayField {
public text = {
linkTitle: this.I18n.t('js.work_packages.message_view_spent_time')
linkTitle: this.I18n.t('js.work_packages.message_view_spent_time'),
logTime: this.I18n.t('js.button_log_time')
};
@InjectField() PathHelper:PathHelperService;
@ -63,7 +64,13 @@ export class WorkPackageSpentTimeDisplayField extends DurationDisplayField {
});
}
const timelogLogo= document.createElement('a');
timelogLogo.setAttribute('class','icon icon-time');
timelogLogo.textContent = this.text.logTime;
element.innerHTML = '';
element.appendChild(link);
element.appendChild(timelogLogo);
}
}

Loading…
Cancel
Save