mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
FIX: used 'pin' terminology instead of 'feature topic'
This commit is contained in:
parent
e70597a0d0
commit
18f4f60956
4 changed files with 7 additions and 13 deletions
|
@ -29,23 +29,19 @@ export default ObjectController.extend(ModalFunctionality, {
|
|||
}.property("categoryLink", "pinnedInCategoryCount"),
|
||||
|
||||
onShow() {
|
||||
const self = this;
|
||||
|
||||
this.set("loading", true);
|
||||
|
||||
return Discourse.ajax("/topics/feature_stats.json", {
|
||||
data: { category_id: this.get("category.id") }
|
||||
}).then(function(result) {
|
||||
}).then(result => {
|
||||
if (result) {
|
||||
self.setProperties({
|
||||
this.setProperties({
|
||||
pinnedInCategoryCount: result.pinned_in_category_count,
|
||||
pinnedGloballyCount: result.pinned_globally_count,
|
||||
bannerCount: result.banner_count,
|
||||
});
|
||||
}
|
||||
}).finally(function() {
|
||||
self.set("loading", false);
|
||||
});
|
||||
}).finally(() => this.set("loading", false));
|
||||
},
|
||||
|
||||
_forwardAction(name) {
|
||||
|
|
|
@ -58,9 +58,9 @@
|
|||
<div class="feature-section">
|
||||
<div class="button">
|
||||
{{#if isBanner}}
|
||||
{{d-button action="removeBanner" icon="bullhorn" label="topic.actions.remove_banner" class="btn-primary"}}
|
||||
{{d-button action="removeBanner" icon="thumb-tack" label="topic.actions.remove_banner" class="btn-primary"}}
|
||||
{{else}}
|
||||
{{d-button action="makeBanner" icon="bullhorn" label="topic.actions.make_banner" class="btn-primary"}}
|
||||
{{d-button action="makeBanner" icon="thumb-tack" label="topic.actions.make_banner" class="btn-primary"}}
|
||||
{{/if}}
|
||||
</div>
|
||||
<div class="desc">
|
||||
|
|
|
@ -30,9 +30,9 @@
|
|||
{{#if visible}}
|
||||
<li>
|
||||
{{#if isFeatured}}
|
||||
{{d-button action="showFeatureTopic" icon="bullhorn" label="topic.actions.remove_feature" class="btn-admin"}}
|
||||
{{d-button action="showFeatureTopic" icon="thumb-tack" label="topic.actions.unpin" class="btn-admin"}}
|
||||
{{else}}
|
||||
{{d-button action="showFeatureTopic" icon="bullhorn" label="topic.actions.feature" class="btn-admin"}}
|
||||
{{d-button action="showFeatureTopic" icon="thumb-tack" label="topic.actions.pin" class="btn-admin"}}
|
||||
{{/if}}
|
||||
</li>
|
||||
{{/if}}
|
||||
|
|
|
@ -988,8 +988,6 @@ en:
|
|||
open: "Open Topic"
|
||||
close: "Close Topic"
|
||||
auto_close: "Auto Close"
|
||||
feature: "Feature Topic"
|
||||
remove_feature: "Remove Feature"
|
||||
make_banner: "Banner Topic"
|
||||
remove_banner: "Remove Banner Topic"
|
||||
pin: "Pin Topic"
|
||||
|
|
Loading…
Reference in a new issue