mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: tooltip for disabled new topic button (#20561)
This commit is contained in:
parent
9ec657f1fd
commit
c659540475
@ -7,4 +7,5 @@
|
|||||||
@disabled={{this.disabled}}
|
@disabled={{this.disabled}}
|
||||||
@label={{this.label}}
|
@label={{this.label}}
|
||||||
/>
|
/>
|
||||||
|
{{yield}}
|
||||||
{{/if}}
|
{{/if}}
|
@ -85,7 +85,11 @@
|
|||||||
@label={{this.createTopicLabel}}
|
@label={{this.createTopicLabel}}
|
||||||
@btnClass={{this.createTopicClass}}
|
@btnClass={{this.createTopicClass}}
|
||||||
@canCreateTopicOnTag={{this.canCreateTopicOnTag}}
|
@canCreateTopicOnTag={{this.canCreateTopicOnTag}}
|
||||||
/>
|
>
|
||||||
|
{{#if this.createTopicButtonDisabled}}
|
||||||
|
<DTooltip>{{i18n "topic.create_disabled_category"}}</DTooltip>
|
||||||
|
{{/if}}
|
||||||
|
</CreateTopicButton>
|
||||||
|
|
||||||
<PluginOutlet
|
<PluginOutlet
|
||||||
@name="after-create-topic-button"
|
@name="after-create-topic-button"
|
||||||
|
@ -2893,6 +2893,7 @@ en:
|
|||||||
one: "%{count} post in topic"
|
one: "%{count} post in topic"
|
||||||
other: "%{count} posts in topic"
|
other: "%{count} posts in topic"
|
||||||
create: "New Topic"
|
create: "New Topic"
|
||||||
|
create_disabled_category: "You're not allowed to create topics in this category"
|
||||||
create_long: "Create a new Topic"
|
create_long: "Create a new Topic"
|
||||||
open_draft: "Open Draft"
|
open_draft: "Open Draft"
|
||||||
private_message: "Start a message"
|
private_message: "Start a message"
|
||||||
|
Loading…
Reference in New Issue
Block a user