This commit is contained in:
smilerz
2021-09-05 11:17:28 -05:00
parent 738387ccf0
commit d1556f69c2
29 changed files with 184 additions and 204 deletions

View File

@ -67,7 +67,7 @@ import GenericModalForm from "@/components/Modals/GenericModalForm";
Vue.use(BootstrapVue)
export default {
name: 'FoodListView', // TODO: make generic name
name: 'ModelListView', // TODO: make generic name
mixins: [CardMixin, ToastMixin, ApiMixin],
components: {GenericHorizontalCard, GenericSplitLists, GenericModalForm},
data() {
@ -85,7 +85,8 @@ export default {
}
},
mounted() {
this.this_model = this.Models.FOOD //TODO: mounted method to calcuate
let path = (window.location.pathname).split('/')
this.this_model = this.Models[path[path.length - 2].toUpperCase()]
},
methods: {
// this.genericAPI inherited from ApiMixin

View File

@ -1,5 +1,5 @@
import Vue from 'vue'
import App from './FoodListView'
import App from './ModelListView'
import i18n from '@/i18n'
Vue.config.productionTip = false

View File

@ -96,7 +96,6 @@
</template>
<script>
import Vue from 'vue' // maybe not needed?
import 'bootstrap-vue/dist/bootstrap-vue.css'
import _debounce from 'lodash/debounce'
import InfiniteLoading from 'vue-infinite-loading';