mirror of
https://github.com/CzBiX/qb-web.git
synced 2026-02-11 06:15:07 +08:00
Add checkbox for create subfolder
This commit is contained in:
@@ -67,6 +67,16 @@
|
||||
@input="setParams('category', $event)"
|
||||
/>
|
||||
</v-col>
|
||||
<v-col>
|
||||
<v-checkbox
|
||||
prepend-icon="mdi-file-tree"
|
||||
label="Create subfolder"
|
||||
:value="params.root_path"
|
||||
@change="setParams('root_path', $event)"
|
||||
/>
|
||||
</v-col>
|
||||
</v-row>
|
||||
<v-row>
|
||||
<v-col>
|
||||
<v-checkbox
|
||||
v-model="autoStart"
|
||||
@@ -121,6 +131,7 @@ const defaultParams = {
|
||||
category: null,
|
||||
paused: false,
|
||||
skip_checking: false,
|
||||
root_path: false,
|
||||
};
|
||||
|
||||
export default Vue.extend({
|
||||
@@ -162,6 +173,7 @@ export default Vue.extend({
|
||||
},
|
||||
created() {
|
||||
defaultParams.paused = this.prefs.start_paused_enabled;
|
||||
defaultParams.root_path = this.prefs.create_subfolder_enabled;
|
||||
},
|
||||
mounted() {
|
||||
this.$refs.fileZone.addEventListener('drop', this.onDrop, true);
|
||||
|
||||
Reference in New Issue
Block a user