Last active
June 18, 2019 11:10
-
-
Save shreyanshdwivedi/ae72053a0867ee8da38a91a90dd7538f to your computer and use it in GitHub Desktop.
Open Event: Tests if a user is deletable or not
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// app/components/account/danger-zone.js | |
isUserDeletable: computed('data.events', 'data.orders', function() { | |
if (this.get('data.events').length || this.get('data.orders').length) { | |
return false; | |
} | |
return true; | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment