diff --git a/app/components/index-setting.js b/app/components/index-setting.js index 515930f..c63ef66 100644 --- a/app/components/index-setting.js +++ b/app/components/index-setting.js @@ -5,7 +5,7 @@ import ActionInvoker from '../lib/action-invoker'; import { inject as service } from '@ember/service'; export default class FormIndexSettingComponent extends Component { - @service toasts; + @service toaster; @tracked value; @tracked error; @@ -25,7 +25,7 @@ export default class FormIndexSettingComponent extends Component { try { return this.args.index .updateSetting(this.args.name, JSON.parse(newValue)) - .then(this.toasts.taskToast); + .then(this.toaster.taskToast); } catch (error) { this.error = error.error || error; } @@ -44,7 +44,7 @@ export default class FormIndexSettingComponent extends Component { try { return this.args.index .resetSetting(this.args.name) - .then(this.toasts.taskToast); + .then(this.toaster.taskToast); } catch (error) { this.error = error.error || error; } diff --git a/app/components/toast.hbs b/app/components/toast.hbs index f9c07c1..4de891d 100644 --- a/app/components/toast.hbs +++ b/app/components/toast.hbs @@ -1,4 +1,4 @@ -{{#in-element this.toasts.destinationElement insertBefore=null}} +{{#in-element this.toaster.destinationElement insertBefore=null}}