We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 430a7d7 commit 1f7f117Copy full SHA for 1f7f117
src/components/CanvasEditor.vue
@@ -23,6 +23,7 @@
23
type="file"
24
class="hidden"
25
ref="fileSelector"
26
+ accept="image/png, image/jpeg"
27
@change="loadImageFile"
28
/>
29
</div>
src/views/Home.vue
@@ -45,12 +45,16 @@ export default {
45
data() {
46
return {
47
disabledControls: true,
48
- settings: { brightness: 0, contrast: 0 }
+ settings: this.initSettings()
49
};
50
},
51
methods: {
52
+ initSettings() {
53
+ return { brightness: 0, contrast: 0 };
54
+ },
55
imageLoaded() {
56
this.disabledControls = false;
57
+ this.settings = this.initSettings();
58
}
59
60
0 commit comments