v1.5-alpha.1

This commit is contained in:
carodej
2020-05-15 17:31:25 +02:00
parent cfecf542ca
commit 41656235fc
97 changed files with 4108 additions and 2118 deletions

View File

@@ -2,6 +2,7 @@ import store from './store/index'
import {debounce, includes} from "lodash";
import {events} from './bus'
import axios from 'axios'
import router from '@/router'
const Helpers = {
install(Vue) {
@@ -88,6 +89,10 @@ const Helpers = {
// Append form data
formData.append('parent_id', rootFolder)
console.log(i);
console.log(files[i]);
console.log(formData);
// Upload data
await store.dispatch('uploadFiles', formData)
.then(() => {
@@ -233,6 +238,11 @@ const Helpers = {
events.$emit('popup:close')
}
Vue.prototype.$isThisRoute = function(route, locations) {
return includes(locations, route.name)
}
Vue.prototype.$isThisLocation = function(location) {
// Get current location