mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-25 13:01:00 +00:00
fix(client): Display message about needing a party in quest modal
closes #7684 closes #7686
This commit is contained in:
parent
7fd3ad3731
commit
851ad59fb8
2 changed files with 13 additions and 7 deletions
|
|
@ -28,6 +28,7 @@
|
|||
"LFG": "To advertise your new party or find one to join, go to the <%= linkStart %>Party Wanted (Looking for Group)<%= linkEnd %> Guild.",
|
||||
"wantExistingParty": "Want to join an existing party? Go to the <%= linkStart %>Party Wanted Guild<%= linkEnd %> and post this User ID:",
|
||||
"joinExistingParty": "Join Someone Else's Party",
|
||||
"needPartyToStartQuest": "Whoops! You need to <a href='http://habitica.wikia.com/wiki/Party' target='_blank'>create or join a party</a> before you can start a quest!",
|
||||
"create": "Create",
|
||||
"userId": "User ID",
|
||||
"invite": "Invite",
|
||||
|
|
|
|||
|
|
@ -38,15 +38,20 @@ script(type='text/ng-template', id='modals/showQuest.html')
|
|||
h4 {{::selectedQuest.text()}}
|
||||
.modal-body
|
||||
+questInfo
|
||||
hr
|
||||
div(class="#{env.worldDmg.quests ? 'npc_ian_broken' : 'npc_ian'}").pull-left
|
||||
p(ng-if='!env.worldDmg.quests')=env.t('questSend')
|
||||
p(ng-if='!env.worldDmg.quests')=env.t('questWarning')
|
||||
p(ng-if='env.worldDmg.quests')=env.t('questSendBroken')
|
||||
p(ng-if='env.worldDmg.quests')=env.t('questWarningBroken')
|
||||
|
||||
div(ng-if='user.party._id')
|
||||
hr
|
||||
|
||||
div(class="#{env.worldDmg.quests ? 'npc_ian_broken' : 'npc_ian'}").pull-left
|
||||
p(ng-if='!env.worldDmg.quests')=env.t('questSend')
|
||||
p(ng-if='!env.worldDmg.quests')=env.t('questWarning')
|
||||
p(ng-if='env.worldDmg.quests')=env.t('questSendBroken')
|
||||
p(ng-if='env.worldDmg.quests')=env.t('questWarningBroken')
|
||||
.modal-footer
|
||||
.alert.alert-warning(ng-if='!user.party._id')
|
||||
p!=env.t('needPartyToStartQuest')
|
||||
button.btn.btn-default(ng-click='closeQuest(); $close()')=env.t('cancel')
|
||||
button.btn.btn-primary(ng-click='questInit()')
|
||||
button.btn.btn-primary(ng-click='questInit()', ng-if='user.party._id')
|
||||
| {{:: party.memberCount > 1 ? env.t('inviteParty') : env.t('startQuest')}}
|
||||
|
||||
script(type='text/ng-template', id='modals/buyQuest.html')
|
||||
|
|
|
|||
Loading…
Reference in a new issue