Commit a83ad713 authored by K9260's avatar K9260 🎅🏼

Fixaus linkkeihin, turhia rivejä pois

parent b7b3a066
This diff is collapsed.
......@@ -15,36 +15,22 @@ import Vuex from 'vuex';
import Vuetify from 'vuetify'
import VuexPersist from 'vuex-persist'
import 'vuetify/dist/vuetify.min.css' // Ensure you are using css-loader
import VueMaterial from 'vue-material'
import StoreData from './store'
import vuexPersist from './store'
Vue.use(VueMaterial);
Vue.use(Vuex);
Vue.use(Vuetify);
Vue.use(VueRouter);
import App from './components/App'
import Main from './components/Main'
import Hello from './components/Hello'
import Home from './components/Home'
import Login from './components/auth/Login'
import Profile from './components/Profile'
Vue.component('example-component', require('./components/ExampleComponent.vue').default);
Vue.component('sidebar', require('./components/Sidebar.vue').default);
//Vue.component('autocomplete', require('./components/MaterialAutocomplete.vue').default);
//Vue.component('register', require('./components/Register.vue').default);
//Vue.component('ui', require('./components/UI.vue').default);
//Vue.component('vuetifyui', require('./components/VuetifyUI.vue').default);
Vue.component('favorites', require('./components/Favorites.vue').default);
const store = new Vuex.Store(StoreData);
const router = new VueRouter({
mode: 'history',
routes: [
......
......@@ -2,20 +2,20 @@
<v-app id="app">
<v-navigation-drawer v-model="drawer" fixed app>
<v-list dense>
<v-list-tile @click="">
<v-list-tile v-ripple @click="">
<v-list-tile-action>
<v-icon>home</v-icon>
</v-list-tile-action>
<v-list-tile-content>
<router-link :to="{ name: 'home' }">Etusivu</router-link>
<router-link class="links" :to="{ name: 'home' }">Etusivu</router-link>
</v-list-tile-content>
</v-list-tile>
<v-list-tile @click="">
<v-list-tile v-ripple @click="">
<v-list-tile-action>
<v-icon>contact_mail</v-icon>
</v-list-tile-action>
<v-list-tile-content>
<router-link :to="{ name: 'profile'}">Profiili</router-link>
<router-link class="links" :to="{ name: 'profile'}">Profiili</router-link>
</v-list-tile-content>
</v-list-tile>
</v-list>
......@@ -74,7 +74,7 @@
export default {
name: 'App',
data: () => ({
drawer: null
drawer: 0
}),
props: {
source: String
......@@ -100,4 +100,9 @@
#bottom {
margin: auto
}
.links{
text-decoration: none;
color: #00b11f;
padding: 10px 180px 10px 0px;
}
</style>
......@@ -5,6 +5,7 @@
label="Suosikit"
prepend-icon="star"
color="yellow darken-1"
no-data-text="Suosikkilistasi on tyhjä"
solo
></v-select>
</template>
......
......@@ -10,13 +10,16 @@
<v-btn :disabled="!selectedKunta" color="white darken-3" @click="addFavorite">Lisää suosikiksi</v-btn>
<v-btn :disabled="!kuntaIsFavorite()" @click="removeFavorite" color="yellow darken-1">Poista</v-btn>
</v-card-actions>
<favorites @pushFavorite="pullFavorite" :favorites="favorites"></favorites>
<Favorites @pushFavorite="pullFavorite" :favorites="favorites"></Favorites>
</v-card>
</v-flex>
</template>
<script>
import Loading from './Loading'
import Favorites from './Favorites'
export default {
name: 'AutocompleteBox',
data: () => ({
......@@ -38,7 +41,8 @@
favorites_temp: [],
}),
components: {
Loading
Loading,
Favorites
},
methods: {
......@@ -119,6 +123,7 @@
this.favorites_temp;
this.$store.commit("mutateFavorites", this.favorites_temp);
this.favorites = this.favorites_temp;
this.selectedKunta = null;
},
kuntaIsFavorite(){
for(var i = 0; i < this.favorites.length; i++){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment