Add support for actually creating that folder on the daemon

This commit is contained in:
Dane Everitt 2019-02-17 13:29:11 -08:00
parent 0b11532a48
commit 866b3a3aac
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
4 changed files with 62 additions and 10 deletions

View file

@ -48,7 +48,7 @@
<a href="#" class="block btn btn-primary btn-sm">New File</a>
</div>
</div>
<CreateFolderModal/>
<CreateFolderModal v-on:close="listDirectory"/>
</div>
</template>
@ -112,8 +112,6 @@
* Watch the current directory setting and when it changes update the file listing.
*/
currentDirectory: function () {
this.$store.dispatch('server/updateCurrentDirectory', this.currentDirectory);
this.listDirectory();
},
@ -152,6 +150,8 @@
this.loading = true;
const directory = encodeURI(this.currentDirectory.replace(/^\/|\/$/, ''));
this.$store.dispatch('server/updateCurrentDirectory', `/${directory}`);
getDirectoryContents(this.$route.params.id, directory)
.then((response) => {
this.files = response.files;