diff options
author | Chocobozzz <me@florianbigard.com> | 2018-11-16 10:05:25 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-11-16 10:05:25 +0100 |
commit | 7373507fa830b0f18cb4cd95dfd923b1600e501d (patch) | |
tree | 112fc5b4bc0cabd599a39452962cefb9733f97ec /client/src/app/shared/misc | |
parent | fe05c3acbd48c72ac7e503bebde91830121a0bf1 (diff) | |
download | PeerTube-7373507fa830b0f18cb4cd95dfd923b1600e501d.tar.gz PeerTube-7373507fa830b0f18cb4cd95dfd923b1600e501d.tar.zst PeerTube-7373507fa830b0f18cb4cd95dfd923b1600e501d.zip |
Improve video upload error handling
Diffstat (limited to 'client/src/app/shared/misc')
-rw-r--r-- | client/src/app/shared/misc/utils.ts | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/client/src/app/shared/misc/utils.ts b/client/src/app/shared/misc/utils.ts index 78be2e5dd..78e8e9682 100644 --- a/client/src/app/shared/misc/utils.ts +++ b/client/src/app/shared/misc/utils.ts | |||
@@ -124,6 +124,10 @@ function sortBy (obj: any[], key1: string, key2?: string) { | |||
124 | }) | 124 | }) |
125 | } | 125 | } |
126 | 126 | ||
127 | function scrollToTop () { | ||
128 | window.scroll(0, 0) | ||
129 | } | ||
130 | |||
127 | export { | 131 | export { |
128 | sortBy, | 132 | sortBy, |
129 | durationToString, | 133 | durationToString, |
@@ -135,5 +139,6 @@ export { | |||
135 | immutableAssign, | 139 | immutableAssign, |
136 | objectToFormData, | 140 | objectToFormData, |
137 | lineFeedToHtml, | 141 | lineFeedToHtml, |
138 | removeElementFromArray | 142 | removeElementFromArray, |
143 | scrollToTop | ||
139 | } | 144 | } |