]> cat aescling's git repositories - mastodon.git/commitdiff
Minor description corrections
authorMarek Ľach <45913977+marek-lach@users.noreply.github.com>
Sat, 2 Feb 2019 12:43:51 +0000 (13:43 +0100)
committerThibG <thib@sitedethib.com>
Sat, 2 Feb 2019 23:30:34 +0000 (00:30 +0100)
app/javascript/flavours/glitch/features/ui/components/doodle_modal.js

index 9c74451b3ea47b2a0fafde4480f9ac3a35979933..72f7f30b95ea285f6ab8c737d221b3cfa82b8e23 100644 (file)
@@ -110,7 +110,7 @@ function dataURLtoFile(dataurl, filename) {
   }
   return new File([u8arr], filename, { type: mime });
 }
-
+/** Doodle canvas size options */
 const DOODLE_SIZES = {
   normal: [500, 500, 'Square 500'],
   tootbanner: [702, 330, 'Tootbanner'],
@@ -520,7 +520,7 @@ export default class DoodleModal extends ImmutablePureComponent {
     let newSize = e.target.value;
     if (newSize === this.oldSize) return;
 
-    if (this.undos.length > 1 && !confirm('Change size? This will erase your drawing!')) {
+    if (this.undos.length > 1 && !confirm('Change canvas size? This will erase your current drawing!')) {
       return;
     }
 
@@ -528,7 +528,7 @@ export default class DoodleModal extends ImmutablePureComponent {
   };
 
   handleClearBtn = () => {
-    if (this.undos.length > 1 && !confirm('Clear screen? This will erase your drawing!')) {
+    if (this.undos.length > 1 && !confirm('Clear canvas? This will erase your current drawing!')) {
       return;
     }