small fixes
This commit is contained in:
+1
-1
@@ -1,7 +1,7 @@
|
||||
{{#if siteSettings.discourse_donations_cause_category}}
|
||||
<section class='field'>
|
||||
<label>{{i18n 'discourse_donations.cause.amounts.setting_label'}}</label>
|
||||
{{input type="checkbox" checked=category.custom_fields.donations_show_amounts}}
|
||||
<span>{{i18n 'discourse_donations.cause.amounts.setting_label'}}</span>
|
||||
</section>
|
||||
|
||||
<section class='field'>
|
||||
|
||||
@@ -31,7 +31,7 @@ createWidget('category-header-widget', {
|
||||
|
||||
let metadata = [];
|
||||
|
||||
if (category.donations_show_amounts) {
|
||||
if (category.donations_total !== undefined) {
|
||||
metadata.push(donationDisplay(category.donations_total || 0, 'total'));
|
||||
|
||||
if (Discourse.SiteSettings.discourse_donations_cause_month) {
|
||||
@@ -65,7 +65,9 @@ createWidget('category-header-widget', {
|
||||
}
|
||||
}))
|
||||
);
|
||||
}
|
||||
|
||||
if (metadata.length) {
|
||||
contents.push(h('div.donations-category-metadata', metadata));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user