FEATURE: tooltip for disabled new topic button (#20561)
This commit is contained in:
parent
9ec657f1fd
commit
c659540475
|
@ -7,4 +7,5 @@
|
|||
@disabled={{this.disabled}}
|
||||
@label={{this.label}}
|
||||
/>
|
||||
{{yield}}
|
||||
{{/if}}
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue