浏览代码

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