You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's a Vue mixin I've found myself using across multiple projects now that would make use of these constants:
/** * This mixin exposes helper methods for components that need to check that the current user has * a certain access level on a given resource. */exportconstaccessLevelChecker={methods: {hasWriteAccess: resource=>resource._accessLevel>=AccessType.WRITE,hasAdminAccess: resource=>resource._accessLevel>=AccessType.ADMIN,},};
Since it's small, central, and common, I think that mixin should also be a candidate for inclusion in this library.
One general purpose utility this library could provide would be some constants from core, such as
AccessType
andSortDir
.The text was updated successfully, but these errors were encountered: