garthh преди 10 месеца
родител
ревизия
a620b9e51b
променени са 3 файла, в които са добавени 6 реда и са изтрити 4 реда
  1. 0 0
      components/modal/bbb.js.es6
  2. 6 4
      components/modal/insert-bbb.hbs
  3. 0 0
      components/modal/insert-bbb.js.es6

+ 0 - 0
assets/javascripts/discourse/initializers/bbb.js.es6 → components/modal/bbb.js.es6


+ 6 - 4
assets/javascripts/discourse/templates/modal/insert-bbb.hbs → components/modal/insert-bbb.hbs

@@ -1,4 +1,5 @@
-<DModalBody @title="bbb.modal.title" @class="insert-bbb">
+<DModal @closeModal={{@closeModal}}>
+<:body @title="bbb.modal.title" @class="insert-bbb">
   <div class="insert-bbb-form">
     <div class="insert-bbb-input">
       <label>{{i18n "bbb.meetingID"}}</label>
@@ -25,9 +26,9 @@
     </div>
 
   </div>
-</DModalBody>
+</:body>
 
-<div class="modal-footer">
+<:footer>
   <DButton
     @class="btn-primary"
     @disabled={{insertDisabled}}
@@ -39,4 +40,5 @@
     @label="bbb.modal.cancel"
     @action={{action "cancel"}}
   />
-</div>
+</:footer>
+</DModal>

+ 0 - 0
assets/javascripts/discourse-bbb/controllers/insert-bbb.js.es6 → components/modal/insert-bbb.js.es6