diff --git a/.eslintrc.js b/.eslintrc.js index 45b88f5..4277237 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -32,7 +32,7 @@ module.exports = { 'n/no-unpublished-require': [ 'error', { - allowModules: ['resolve', 'broccoli-funnel'], + allowModules: ['resolve', 'broccoli-funnel', 'broccoli-merge-trees'], }, ], }, diff --git a/addon/components/schedule-manager.hbs b/addon/components/schedule-manager.hbs index a51b4b0..8a41d10 100644 --- a/addon/components/schedule-manager.hbs +++ b/addon/components/schedule-manager.hbs @@ -2,9 +2,9 @@ {{#each-in this.schedule as |day hours|}}
-

{{day}}

+

{{day}}

-
diff --git a/addon/controllers/products/index/category/new.js b/addon/controllers/products/index/category/new.js index d33f6e0..e6cb6e5 100644 --- a/addon/controllers/products/index/category/new.js +++ b/addon/controllers/products/index/category/new.js @@ -90,6 +90,12 @@ export default class ProductsIndexCategoryNewController extends BaseController { } @action queueFile(file) { + // since we have dropzone and upload button within dropzone validate the file state first + // as this method can be called twice from both functions + if (['queued', 'failed', 'timed_out', 'aborted'].indexOf(file.state) === -1) { + return; + } + this.uploadQueue.pushObject(file); this.fetch.uploadFile.perform( file, diff --git a/addon/templates/networks/index/network.hbs b/addon/templates/networks/index/network.hbs index d159223..7e7ad4b 100644 --- a/addon/templates/networks/index/network.hbs +++ b/addon/templates/networks/index/network.hbs @@ -1,4 +1,4 @@ - +
diff --git a/addon/templates/networks/index/network/stores.hbs b/addon/templates/networks/index/network/stores.hbs index 3321b6a..51de942 100644 --- a/addon/templates/networks/index/network/stores.hbs +++ b/addon/templates/networks/index/network/stores.hbs @@ -1,6 +1,6 @@ -