Skip to content

Commit

Permalink
Iterating on ministries on admin page
Browse files Browse the repository at this point in the history
  • Loading branch information
acoard committed Feb 12, 2020
1 parent 118316e commit f0640d3
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 26 deletions.
10 changes: 1 addition & 9 deletions dev-docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,4 @@ services:
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: admin
POSTGRES_DB: timemachine

web-dev:
build:
context: ./web
volumes:
- "./web/:/web/"
ports:
- "8080:8080"
POSTGRES_DB: timemachine
40 changes: 32 additions & 8 deletions web/src/components/timeMachine/admin/AdminMinistries.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,28 +7,52 @@
</v-layout>
<v-layout row wrap>
<v-flex xs12>
<p>Welcome to ministries list</p>
<p>TODO: Modify, re-name</p>

<v-list>
<v-list-tile
v-for="ministry in ministries"
:key="ministry.id"
>
<v-list-tile-content>
<v-list-tile-title v-text="ministry.ministryName"></v-list-tile-title>
</v-list-tile-content>
</v-list-tile>
</v-list>

Lorem ipsum dolor sit amet consectetur adipisicing elit. Nam itaque, asperiores blanditiis ducimus laborum pariatur facere tenetur quo doloribus temporibus culpa eaque sit nihil quasi magni! Mollitia ducimus porro ratione!

</v-flex>
</v-layout>
</v-container>
</template>

<script>
import Material from 'vuetify/es5/util/colors';
import Material from "vuetify/es5/util/colors";
export default {
data: () => ({
color: Material,
selectedTab: 'tab-1',
}),
// data: () => ({
// color: Material,
// selectedTab: 'tab-1',
// ministries: this.$store.state.ministryInformation,
// }),
components: {
},
// data() {
// return {
// ministryInformation: this.$store.state.ministryInformation
// };
// },
beforeMount() {
// this.$store.state.collapseNavigationBar = true;
},
computed: {},
// computed: {},
computed: {
ministries() {
return this.$store.state.ministries;
}
},
};
</script>

Expand Down
3 changes: 0 additions & 3 deletions web/src/menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,6 @@ const menuItems = [
title: 'Admin',
icon: 'lock_open',
},
{
divider: true,
},
{
header: 'System',
},
Expand Down
7 changes: 1 addition & 6 deletions web/vue.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,4 @@ module.exports = {
configureWebpack: {
devtool: 'source-map',
},

// NOTE - ONLY FOR GitHub Pages! Any way to easily configure, maybe env var
// Using ./ for GH pages - need to verify but turns paths relative
// https://github.com/vuejs/vue-cli/issues/1623
baseUrl: './'
};
};

0 comments on commit f0640d3

Please sign in to comment.