Fix downgraded help text component

pull/6263/head
Oliver Günther 7 years ago
parent 1d0923667c
commit e3b5dd2d68
No known key found for this signature in database
GPG Key ID: 88872239EB414F99
  1. 8
      app/views/attribute_help_texts/_tab.html.erb
  2. 3
      frontend/app/angular4-modules.ts
  3. 5
      frontend/app/components/common/help-texts/attribute-help-text.component.ts

@ -72,10 +72,10 @@ See docs/COPYRIGHT.rdoc for more details.
</td> </td>
<td> <td>
<attribute-help-text <attribute-help-text
help-text-id="<%= attribute_help_text.id %>" [help-text-id]="<%= attribute_help_text.id %>"
attribute="'<%= attribute_help_text.attribute_name %>'" [attribute]="'<%= attribute_help_text.attribute_name %>'"
attribute-scope="<%= attribute_help_text.attribute_scope %>" [attribute-scope]="'<%= attribute_help_text.attribute_scope %>'"
additional-label="<%= t(:'attribute_help_texts.show_preview') %>"> [additional-label]="'<%= t(:'attribute_help_texts.show_preview') %>'">
</attribute-help-text> </attribute-help-text>
</td> </td>
<td class="buttons"> <td class="buttons">

@ -501,6 +501,9 @@ import {UploadProgressComponent} from 'core-components/common/notifications/uplo
// Notifications // Notifications
NotificationsContainerComponent, NotificationsContainerComponent,
OpDateTimeComponent, OpDateTimeComponent,
// Entries for ng1 downgraded components
AttributeHelpTextComponent,
] ]
}) })
export class OpenProjectModule { export class OpenProjectModule {

@ -92,4 +92,7 @@ export class AttributeHelpTextComponent implements OnInit {
} }
} }
opUiComponentsModule.component('attributeHelpText', downgradeComponent({ component: AttributeHelpTextComponent })); opUiComponentsModule.directive(
'attributeHelpText',
downgradeComponent({ component: AttributeHelpTextComponent })
);

Loading…
Cancel
Save