-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FIX: ensure discovery nav observes route changes properly
- Loading branch information
1 parent
eeec0a8
commit 841ffc4
Showing
7 changed files
with
134 additions
and
50 deletions.
There are no files selected for viewing
29 changes: 12 additions & 17 deletions
29
assets/javascripts/discourse/components/activity-pub-nav-item.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,12 @@ | ||
{{#if @model}} | ||
<a | ||
class={{this.classes}} | ||
href={{this.href}} | ||
title={{i18n | ||
"discourse_activity_pub.discovery.description" | ||
model_name=@model.name | ||
}} | ||
{{did-insert this.subscribe}} | ||
{{did-insert this.didChangeModel}} | ||
{{did-update this.didChangeModel @model}} | ||
{{will-destroy this.unsubscribe}} | ||
> | ||
{{d-icon "discourse-activity-pub"}} | ||
{{i18n "discourse_activity_pub.discovery.label"}} | ||
</a> | ||
{{/if}} | ||
<a | ||
class={{this.classes}} | ||
href={{this.href}} | ||
title={{this.title}} | ||
{{did-insert this.setup}} | ||
{{did-update this.changeCategory @category}} | ||
{{did-update this.changeTag @tag}} | ||
{{will-destroy this.teardown}} | ||
> | ||
{{d-icon "discourse-activity-pub"}} | ||
{{i18n "discourse_activity_pub.discovery.label"}} | ||
</a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
assets/javascripts/discourse/connectors/extra-nav-item/activity-pub-navigation.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<ActivityPubNavItem @model={{this.model}} @modelType={{this.modelType}} /> | ||
<ActivityPubNavItem @category={{this.category}} @tag={{this.tag}} /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters