mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-26 20:34:02 +03:00
Refined all sources list on dashboard
refs https://github.com/orgs/TryGhost/projects/77 - shows single selected column on the all referrer sources list in dashboard
This commit is contained in:
parent
5eae093b3c
commit
fa2292806a
@ -7,11 +7,13 @@
|
||||
<div class="modal-body pa">
|
||||
<div>
|
||||
<div class="gh-dashboard-list-header">
|
||||
<div class="gh-dashboard-list-title">Sources</div>
|
||||
{{#if (eq @data.sortColumn "signups")}} <div class="gh-dashboard-list-title">Sources</div> {{/if}}
|
||||
<div class="gh-dashboard-list-title">Free signups</div>
|
||||
{{#if (eq @data.sortColumn "paid")}}
|
||||
{{#if this.membersUtils.paidMembersEnabled}}
|
||||
<div class="gh-dashboard-list-title"><span class="hide-when-small">Paid </span>Conversions</div>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
</div>
|
||||
<div class="gh-dashboard-list-body">
|
||||
<div class="gh-dashboard-attribution-list-scrollable">
|
||||
@ -20,6 +22,7 @@
|
||||
<div class="gh-dashboard-list-item-sub gh-dashboard-list-item-sub-source">
|
||||
<span class="gh-dashboard-list-text">{{sourceData.source}}</span>
|
||||
</div>
|
||||
{{#if (eq @data.sortColumn "signups")}}
|
||||
<div class="gh-dashboard-list-item-sub">
|
||||
<span class="gh-dashboard-metric-minivalue">
|
||||
{{#if sourceData.signups}}
|
||||
@ -29,6 +32,8 @@
|
||||
{{/if}}
|
||||
</span>
|
||||
</div>
|
||||
{{/if}}
|
||||
{{#if (eq @data.sortColumn "paid")}}
|
||||
{{#if this.membersUtils.paidMembersEnabled}}
|
||||
<div class="gh-dashboard-list-item-sub">
|
||||
<span class="gh-dashboard-metric-minivalue">
|
||||
@ -40,6 +45,7 @@
|
||||
</span>
|
||||
</div>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
</div>
|
||||
{{else}}
|
||||
<div class="gh-dashboard-list-empty">
|
||||
|
@ -13,7 +13,8 @@ export default class SourceAttributionTable extends Component {
|
||||
const allSources = this.unavailableSource ? [...this.sortedSources, this.unavailableSource] : this.sortedSources;
|
||||
|
||||
this.modals.open(AllSourcesModal, {
|
||||
sources: allSources
|
||||
sources: allSources,
|
||||
sortColumn: this.args.sortColumn
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user