mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
test connection UI (#4596)
* test connection UI * cleanup Co-authored-by: Jeremy Letto <jeremy.letto@datasite.com>
This commit is contained in:
parent
00a2a8ab71
commit
0ff59e6d1e
11 changed files with 169 additions and 22 deletions
|
|
@ -24,6 +24,12 @@ export const Actions = {
|
|||
connectionFailed: () => ({
|
||||
type: Types.CONNECTION_FAILED,
|
||||
}),
|
||||
testConnectionSuccessful: () => ({
|
||||
type: Types.TEST_CONNECTION_SUCCESSFUL,
|
||||
}),
|
||||
testConnectionFailed: () => ({
|
||||
type: Types.TEST_CONNECTION_FAILED,
|
||||
}),
|
||||
serverMessage: message => ({
|
||||
type: Types.SERVER_MESSAGE,
|
||||
message
|
||||
|
|
|
|||
|
|
@ -22,6 +22,12 @@ export const Dispatch = {
|
|||
connectionFailed: () => {
|
||||
store.dispatch(Actions.connectionFailed());
|
||||
},
|
||||
testConnectionSuccessful: () => {
|
||||
store.dispatch(Actions.testConnectionSuccessful());
|
||||
},
|
||||
testConnectionFailed: () => {
|
||||
store.dispatch(Actions.testConnectionFailed());
|
||||
},
|
||||
updateBuddyList: buddyList => {
|
||||
store.dispatch(Actions.updateBuddyList(buddyList));
|
||||
},
|
||||
|
|
|
|||
|
|
@ -5,6 +5,8 @@ export const Types = {
|
|||
LOGIN_FAILED: '[Server] Login Failed',
|
||||
CONNECTION_CLOSED: '[Server] Connection Closed',
|
||||
CONNECTION_FAILED: '[Server] Connection Failed',
|
||||
TEST_CONNECTION_SUCCESSFUL: '[Server] Test Connection Successful',
|
||||
TEST_CONNECTION_FAILED: '[Server] Test Connection Failed',
|
||||
SERVER_MESSAGE: '[Server] Server Message',
|
||||
UPDATE_BUDDY_LIST: '[Server] Update Buddy List',
|
||||
ADD_TO_BUDDY_LIST: '[Server] Add to Buddy List',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue