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