Deprecate isSlotEmpty in the plugins api

This commit is contained in:
Chi Vinh Le
2017-07-17 19:32:48 +07:00
parent 0e9d9067f9
commit 41f5297d78
+7 -1
View File
@@ -1,3 +1,9 @@
export {t} from 'coral-framework/services/i18n';
export {can} from 'coral-framework/services/perms';
export {isSlotEmpty} from 'coral-framework/helpers/plugins';
import {isSlotEmpty as ise} from 'coral-framework/helpers/plugins';
// @TODO: Deprecated.
export function isSlotEmpty(...args) {
console.warn('A plugin is using `isSlotEmpty` which has been deprecated, please port to the new API using the `IfSlotIsEmpty` and `IfSlotIsNotEmpty` components.');
return ise(...args);
}