Logout.vue 588 Bytes
Newer Older
1
<template>
Bat's avatar
Bat committed
2
  <div class="main pusher" v-title="'Log Out'">
3
4
5
    <div class="ui vertical stripe segment">
      <div class="ui small text container">
        <h2>Are you sure you want to log out?</h2>
6
7
        <p>You are currently logged in as {{ $store.state.auth.username }}</p>
        <button class="ui button" @click="$store.dispatch('auth/logout')">Yes, log me out!</button>
8
9
10
11
12
13
14
15
        </form>
      </div>
    </div>
  </div>
</template>

<script>
export default {
16
  name: 'logout'
17
18
19
20
21
22
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
</style>