Add toasts enabled state to the plugin API

This commit is contained in:
Samuel Elliott 2018-08-10 15:17:57 +01:00
parent a4992e905c
commit 22e78c03e1
No known key found for this signature in database
GPG Key ID: 8420C7CDE43DC4D6
1 changed files with 2 additions and 1 deletions

View File

@ -330,7 +330,8 @@ export default class PluginApi {
success: this.showSuccessToast.bind(this),
error: this.showErrorToast.bind(this),
info: this.showInfoToast.bind(this),
warning: this.showWarningToast.bind(this)
warning: this.showWarningToast.bind(this),
get enabled() { return Toasts.enabled }
};
}