UX: prevent anons from clearing pins 📌
This commit is contained in:
parent
d233ecbe34
commit
48f8d9f8a4
|
@ -53,7 +53,7 @@ export default Ember.Object.extend({
|
||||||
|
|
||||||
results.forEach(result => {
|
results.forEach(result => {
|
||||||
result.title = I18n.t(`topic_statuses.${result.key}.help`);
|
result.title = I18n.t(`topic_statuses.${result.key}.help`);
|
||||||
if (!self.disableActions && (result.key === "pinned" ||result.key === "unpinned")) {
|
if (this.currentUser && (result.key === "pinned" || result.key === "unpinned")) {
|
||||||
result.openTag = 'a href';
|
result.openTag = 'a href';
|
||||||
result.closeTag = 'a';
|
result.closeTag = 'a';
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue