FEATURE: tooltip for disabled new topic button (#20561)

This commit is contained in:
Kris 2023-03-08 09:14:53 -05:00 committed by GitHub
parent 9ec657f1fd
commit c659540475
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 1 deletions

View File

@ -7,4 +7,5 @@
@disabled={{this.disabled}}
@label={{this.label}}
/>
{{yield}}
{{/if}}

View File

@ -85,7 +85,11 @@
@label={{this.createTopicLabel}}
@btnClass={{this.createTopicClass}}
@canCreateTopicOnTag={{this.canCreateTopicOnTag}}
/>
>
{{#if this.createTopicButtonDisabled}}
<DTooltip>{{i18n "topic.create_disabled_category"}}</DTooltip>
{{/if}}
</CreateTopicButton>
<PluginOutlet
@name="after-create-topic-button"

View File

@ -2893,6 +2893,7 @@ en:
one: "%{count} post in topic"
other: "%{count} posts in topic"
create: "New Topic"
create_disabled_category: "You're not allowed to create topics in this category"
create_long: "Create a new Topic"
open_draft: "Open Draft"
private_message: "Start a message"