Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions app/components/widgets/forms/social-link-field.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Component from '@glimmer/component';
import { inject as service } from '@ember/service';
import { tracked } from '@glimmer/tracking';
import { SocialMedia, socialMediaMap, socialMediaSites } from 'open-event-frontend/utils/dictionary/social-media';

Expand All @@ -7,9 +8,17 @@ interface Args {
}

export default class SocialLinkField extends Component<Args> {
@service l10n: any;

@tracked
site = 'website';

get extras(): string[] {
// Workaround to list translatable strings which
// are not present anywhere statically
return [this.l10n.t('Website')];
}

get sites(): SocialMedia[] {
return [
{
Expand Down
2 changes: 1 addition & 1 deletion app/templates/admin/sales/revenue.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
{{t 'Events'}}
</th>
<th rowspan="2">
{{t 'Event Date '}}
{{t 'Event Date'}}
</th>
<th colspan="3" class="ui green inverted segment center aligned">
{{t 'Completed Orders'}}
Expand Down
Loading