index options added

This commit is contained in:
carodej
2020-07-13 09:49:25 +02:00
parent a74c1c7b6e
commit 2ae60003d6
50 changed files with 1106 additions and 135 deletions
@@ -29,6 +29,7 @@
<script>
import ButtonBase from '@/components/FilesView/ButtonBase'
import {HardDriveIcon} from "vue-feather-icons"
import { mapGetters } from 'vuex'
import axios from 'axios'
export default {
@@ -42,6 +43,9 @@
plans: undefined,
}
},
computed: {
...mapGetters(['user']),
},
methods: {
selectPlan(plan) {
this.$emit('selected-plan', plan)
@@ -51,7 +55,9 @@
created() {
axios.get('/api/public/pricing')
.then(response => {
this.plans = response.data
this.plans = response.data.filter(plan => {
return plan.data.attributes.capacity > this.user.data.attributes.storage_capacity
})
this.$emit('load', false)
})
}