Last active
November 15, 2019 16:53
-
-
Save derek-duncan/6ae4a3d1118c6fbc5c9dbcb47d220238 to your computer and use it in GitHub Desktop.
Internal Admin Tools
This file contains hidden or 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
Internal Admin Tools | |
Logged Out* | |
log in -> Bulk Admin | |
Bulk Admin | |
practice selected -> Show Preview? | |
action selected -> Preview | |
csv selected -> CSV Upload | |
# Clears the form | |
reset -> Idle | |
Idle* | |
CSV Upload | |
csv success -> Show Preview? | |
csv error -> Errors | |
Show Preview? | |
has action? -> Preview | |
no action? -> Idle | |
Preview& | |
View | |
confirm -> Has Confirmed? | |
ImportPreview* | |
UpdateComparePreview | |
Download Product CSV | |
Download Idle* | |
download start -> Download Loading | |
# Shows spinner on download button | |
Download Loading | |
download success -> Download Idle | |
Has Confirmed? | |
already confirmed? -> Submitting | |
not confirmed? -> Confirmation | |
Errors | |
csv uploaded -> Preview | |
Confirmation | |
cancel -> Preview | |
Unconfirmed Practice | |
type practice -> Confirmed Practice | |
Confirmed Practice | |
reconfirm -> Submitting | |
Submitting | |
error -> Errors | |
# Add a notification when it succeeds. Also clears the form. | |
success -> Idle | |
This file contains hidden or 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
function render(model){ | |
let current_state_name = model.active_states[0].name; | |
return $("h1", | |
{style: {color: "darkBlue"}}, | |
`The current state is: ${current_state_name}`); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment