Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 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
6 changes: 3 additions & 3 deletions app/controllers/events/list.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default class extends Controller.extend(EmberTableControllerMixin) {
{
name : this.l10n.t('Name'),
valuePath : 'name',
width : 150,
width : 180,
isSortable : true,
extraValuePaths : ['identifier', 'logoUrl'],
headerComponent : 'tables/headers/sort',
Expand All @@ -26,7 +26,7 @@ export default class extends Controller.extend(EmberTableControllerMixin) {
valuePath : 'startsAt',
extraValuePaths : ['endsAt', 'timezone'],
isSortable : true,
width : 180,
width : 200,
headerComponent : 'tables/headers/sort',
cellComponent : 'ui-table/cell/cell-event-date'

Expand All @@ -40,7 +40,7 @@ export default class extends Controller.extend(EmberTableControllerMixin) {
},
{
name : this.l10n.t('Tickets'),
width : 130,
width : 150,
valuePath : 'tickets',
extraValuePaths : ['totalSales'],
cellComponent : 'ui-table/cell/cell-tickets'
Expand Down
19 changes: 16 additions & 3 deletions app/templates/components/ui-table/cell/cell-link.hbs
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
<a href="{{this.record}}">
{{this.record}}
</a>
<div class="ui action input" style="width: 100%; height: 36px">
<input class="truncate" style="flex: 1 0 !important" type="text" value={{this.record}} placeholder={{this.record}} readonly>
<UiPopup @on="click" @content={{t "Link copied to clipboard"}} @position="bottom right">
<CopyButton @clipboardText={{this.record}} @class="ui grey icon button rounded-none m-0">
<i class="copy icon"></i>
</CopyButton>
</UiPopup>
<a
id="public_url"
href="{{this.record}}"
target="_blank" rel="noopener">
<div class="ui blue icon button ml-auto rounded-l-none m-0">
<i class="share icon" ></i>
</div>
</a>
</div>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This component is being used a lot, make it a new component and reuse here and on video table