Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit98f084d

Browse files
committed
adjust notification time based on message length
1 parent7ab0ff3 commit98f084d

File tree

4 files changed

+512
-299
lines changed

4 files changed

+512
-299
lines changed

‎lib/modules/tests/actions.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ function testResult(result) {
5151
dispatch(actions_1.progressCompletePage(false));
5252
alert=Object.assign({},alert,{
5353
action:filter,
54-
duration:2200,
54+
duration:result.msg&&result.msg.length ?
55+
(result.msg.length*40)+1000 :2000
5556
});
5657
}
5758
dispatch({type:types_1.TEST_RESULT,payload:{result:result,taskActions:taskActions}});

‎package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
"dependencies": {
3232
"atom-plugin-command-line":"1.0.2",
3333
"coderoad-cli":"0.8.0",
34-
"core-coderoad":"0.6.2",
35-
"material-ui":"0.15.3",
34+
"core-coderoad":"0.7.0",
35+
"material-ui":"0.15.4",
3636
"node-file-exists":"1.1.0",
3737
"react":"15.3.0",
3838
"react-dom":"15.3.0",
@@ -56,7 +56,7 @@
5656
},
5757
"devDependencies": {
5858
"tslint":"3.14.0",
59-
"tslint-react":"0.4.0",
59+
"tslint-react":"1.0.0",
6060
"typescript":"^2.0.0"
6161
}
6262
}

‎src/modules/tests/actions.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ export function testResult(result: Test.Result): ReduxThunk.ThunkInterface {
5656
dispatch(progressCompletePage(false));
5757
alert=Object.assign({},alert,{
5858
action:filter,
59-
duration:2200,
59+
duration:result.msg&&result.msg.length ?
60+
(result.msg.length*40)+1000 :2000
6061
});
6162
}
6263
dispatch({type:TEST_RESULT,payload:{ result, taskActions}});

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp