Merge pull request #1502 from Retrospring/bugfix/no-follower-note
Add note to question modal if current user has no followers
This commit is contained in:
commit
34d97ed7c4
|
@ -8,6 +8,8 @@
|
||||||
.modal-body
|
.modal-body
|
||||||
- if @user
|
- if @user
|
||||||
.alert.alert-info.d-sm-none= t(".user_note_html", user: @user.profile.safe_name)
|
.alert.alert-info.d-sm-none= t(".user_note_html", user: @user.profile.safe_name)
|
||||||
|
- if current_user.followers.count.zero?
|
||||||
|
.alert.alert-warning= t(".follower_note_html")
|
||||||
.form-group.has-feedback
|
.form-group.has-feedback
|
||||||
%textarea.form-control{ name: "qb-all-question", placeholder: t(".placeholder"), data: { "character-count-warning-target": "input" } }
|
%textarea.form-control{ name: "qb-all-question", placeholder: t(".placeholder"), data: { "character-count-warning-target": "input" } }
|
||||||
.alert.alert-warning.mt-3.d-none{ data: { "character-count-warning-target": "warning" } }= t('.long_question_warning')
|
.alert.alert-warning.mt-3.d-none{ data: { "character-count-warning-target": "warning" } }= t('.long_question_warning')
|
||||||
|
|
|
@ -267,6 +267,9 @@ en:
|
||||||
This dialog asks a question to all your followers.
|
This dialog asks a question to all your followers.
|
||||||
<a href="#question-card" data-controller="questionbox-focus" data-action="click">Click here</a>
|
<a href="#question-card" data-controller="questionbox-focus" data-action="click">Click here</a>
|
||||||
to ask them a question directly!
|
to ask them a question directly!
|
||||||
|
follower_note_html: |
|
||||||
|
<strong>You don't have any followers!</strong>
|
||||||
|
Questions asked through this dialog will not arrive in anyone's inbox.
|
||||||
title: "Ask your followers"
|
title: "Ask your followers"
|
||||||
placeholder: "Type your question here…"
|
placeholder: "Type your question here…"
|
||||||
action: "Ask"
|
action: "Ask"
|
||||||
|
|
Loading…
Reference in New Issue