소스 검색

Merge pull request #1217 from transloadit/chore/warn-trigger

dashboard: Log error if `trigger` is not found.
Artur Paikin 6 년 전
부모
커밋
2e3231c4b2
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      packages/@uppy/dashboard/src/index.js

+ 1 - 1
packages/@uppy/dashboard/src/index.js

@@ -441,7 +441,7 @@ module.exports = class Dashboard extends Plugin {
     }
 
     if (!this.opts.inline && !showModalTrigger) {
-      this.uppy.log('Dashboard modal trigger not found. Make sure `trigger` is set in Dashboard options unless you are planning to call openModal() method yourself')
+      this.uppy.log('Dashboard modal trigger not found. Make sure `trigger` is set in Dashboard options unless you are planning to call openModal() method yourself', 'error')
     }
 
     // Drag Drop