Skip to content

Instantly share code, notes, and snippets.

I may be slow to respond.

Shreyansh Dwivedi shreyanshdwivedi

I may be slow to respond.
View GitHub Profile
shreyanshdwivedi /
Last active September 30, 2019 16:59
GSoC 2019 Work Product | Shreyansh Dwivedi | Open Event | FOSSASIA

Google Summer of Code 2019 Work Report

Field Details
Student Shreyansh Dwivedi
Github @shreyanshdwivedi
shreyanshdwivedi / openDeleteUserModal.hbs
Created June 18, 2019 11:18
Open Event: Triggers the action to open delete-user-modal
View openDeleteUserModal.hbs
{{!-- app/templates/components/account/danger-zone.hbs --}}
<button {{action 'openDeleteUserModal'}} class='ui red button'>
{{t 'Delete Your Account'}}
shreyanshdwivedi / isUserDeletable.js
Last active June 18, 2019 11:10
Open Event: Tests if a user is deletable or not
View isUserDeletable.js
// app/components/account/danger-zone.js
isUserDeletable: computed('', 'data.orders', function() {
if (this.get('').length || this.get('data.orders').length) {
return false;
return true;