Remove quick actions

This commit is contained in:
2020-07-12 18:45:41 +03:00
parent b6d86ee659
commit 08c7119879
3 changed files with 0 additions and 72 deletions

View File

@ -4,8 +4,6 @@
<hdr></hdr>
<village-state-list />
<hr class="separator" />
<quick-actions />
<hr class="separator" />
<task-list />
</section>
<section id="dashboard-secondary" v-if="isSecondaryDashboardVisible">
@ -18,7 +16,6 @@
<script>
import Header from './Header';
import TaskList from './TaskList';
import QuickActions from './QuickActions';
import VillageStateList from './VillageStateList';
import LogList from './LogList';
import { mapState } from 'vuex';
@ -29,7 +26,6 @@ export default {
'village-editor': VillageEditor,
'hdr': Header,
'task-list': TaskList,
'quick-actions': QuickActions,
'village-state-list': VillageStateList,
'log-list': LogList,
},

View File

@ -1,34 +0,0 @@
<template>
<ul class="actions">
<li v-for="action in actions">
<a href="#" v-on:click.prevent="onAction(action.cb)">{{ action.label }}</a>
</li>
</ul>
</template>
<script>
export default {
data() {
return {
shared: this.$root.$data,
};
},
computed: {
actions() {
return this.shared.quickActions;
},
},
methods: {
onAction(cb) {
cb();
},
},
};
</script>
<style scoped>
.actions {
margin: 10px auto;
padding-inline-start: 20px;
}
</style>