Skip to content

Commit

Permalink
Fix bootstrap modal.
Browse files Browse the repository at this point in the history
  • Loading branch information
lynnfaraday committed May 23, 2021
1 parent 24f42b2 commit 485ad90
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 14 deletions.
1 change: 1 addition & 0 deletions webportal/components/rpg-live-scene.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { inject as service } from '@ember/service';
export default Component.extend({
tagName: '',
diceString: '',
showRollDice: false,

gameApi: service(),
flashMessages: service(),
Expand Down
20 changes: 6 additions & 14 deletions webportal/templates/components/rpg-live-scene.hbs
Original file line number Diff line number Diff line change
@@ -1,16 +1,8 @@
<li><a href="#" {{action (mut showRollDice) true}}>Roll Dice</a></li>

{{#bs-modal-simple
title="Roll Dice"
closeTitle="Cancel"
submitTitle="Roll"
size=null
fade=false
open=showRollDice
onSubmit=(action "rollDice")
onHide=(action (mut showRollDice) null)}}

{{input type="text" size=25 id="diceString" value=diceString}}
<p class="hint">Enter a dice string in the form 5d6 or 2d10.</p>

{{/bs-modal-simple}}
<BsModalSimple @title="Roll Dice" @closeTitle="Cancel" @submitTitle="Roll" @size={{null}} @fade={{false}} @open={{showRollDice}} @onSubmit={{action "rollDice"}} @onHide={{action (mut showRollDice) false}}>

{{input type="text" size=25 id="diceString" value=diceString}}
<p class="hint">Enter a dice string in the form 5d6 or 2d10.</p>

</BsModalSimple>

0 comments on commit 485ad90

Please sign in to comment.