-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Swik 907 delete deck and transfer ownership #1073
Open
TBoonX
wants to merge
24
commits into
master
Choose a base branch
from
SWIK-907_delete_deck_and_transfer_ownership
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
ca07914
[SWIK-907_delete_deck_and_transfer_ownership] Started to work on feat…
TBoonX c45ab8a
[SWIK-907_delete_deck_and_transfer_ownership] Add of remove deck acti…
TBoonX c8a8c19
[SWIK-907_delete_deck_and_transfer_ownership] Did the transfer owners…
TBoonX 0f6ef0a
Add some API calls code for new deck service delete/change owner APIs
kprist 1f41092
[SWIK-907_delete_deck_and_transfer_ownership] First improvements
TBoonX d6b9e11
Merge branch 'master' of github.com:slidewiki/slidewiki-platform into…
TBoonX 359ea46
[SWIK-907_delete_deck_and_transfer_ownership] SHowing delete buton in…
TBoonX 191ea37
[SWIK-907_delete_deck_and_transfer_ownership] Fixed indentation
TBoonX a4a8c10
Merge branch 'master' of github.com:slidewiki/slidewiki-platform into…
TBoonX 45e4c90
[SWIK-907_delete_deck_and_transfer_ownership] Removed removeDeck acti…
TBoonX ffe23a2
Fix some delete subdeck flows and messages
kprist 8373c39
Merge branch 'master' into SWIK-907_delete_deck_and_transfer_ownership
kprist f10d4a6
Simplify subdeck remove flow: don't provide option to delete
kprist e6b695d
Move deck delete button to the right; add checks after it's clicked
kprist 2941b4f
Include "Delete" button in Transfer Ownership; close modal on delete
kprist 4710dc6
Merge branch 'master' into SWIK-907_delete_deck_and_transfer_ownership
abijames 41bdb71
[SWIK-907_delete_deck_and_transfer_ownership] Changed texts like Abi …
TBoonX 7782915
Update delete deck buttons; add trash icon to delete, make "OK" green
kprist 9ae3f31
Make indication of user to transfer deck to more visible; use keyboard
kprist 9902fe8
Fix linting errors
kprist 9d059c1
Improve how checking for deck usage before deleting works
kprist 2afa9d5
[SWIK-907_delete_deck_and_transfer_ownership] Tooltip of deck deletio…
TBoonX bfa4b0c
Fix fork origin info when origin was deleted or its owner has changed
kprist ef58f77
Merge branch 'master' into SWIK-907_delete_deck_and_transfer_ownership
kprist File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,25 @@ | ||
import log from '../log/clog'; | ||
|
||
import hideTransferOwnershipModal from './hideTransferOwnershipModal'; | ||
|
||
import UserProfileStore from '../../stores/UserProfileStore'; | ||
|
||
export default function deckDeletion(context, payload, done) { | ||
log.info(context); | ||
context.dispatch('START_DELETE_DECK'); | ||
|
||
payload.jwt = context.getStore(UserProfileStore).jwt; | ||
context.executeAction(hideTransferOwnershipModal, {} , () => { | ||
context.dispatch('START_DELETE_DECK'); | ||
|
||
payload.jwt = context.getStore(UserProfileStore).jwt; | ||
|
||
context.service.delete('deck.delete', payload, { timeout: 20 * 1000 }, (err, res) => { | ||
if (err) { | ||
context.dispatch('DELETE_DECK_ERROR', err); | ||
} | ||
else { | ||
context.dispatch('DELETE_DECK_SUCCESS', res); | ||
} | ||
done(); | ||
context.service.delete('deck.delete', payload, { timeout: 20 * 1000 }, (err, res) => { | ||
if (err) { | ||
context.dispatch('DELETE_DECK_ERROR', err); | ||
} | ||
else { | ||
context.dispatch('DELETE_DECK_SUCCESS', res); | ||
} | ||
done(); | ||
}); | ||
}); | ||
} |
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
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
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
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@TBoonX I'm not sure about this. Could you review this piece of code ?