Skip to content
Snippets Groups Projects
Logout.vue 761 B
Newer Older
  • Learn to ignore specific revisions
  • Eliot Berriot's avatar
    Eliot Berriot committed
      <div class="main pusher" v-title="labels.title">
    
        <div class="ui vertical stripe segment">
          <div class="ui small text container">
    
    Eliot Berriot's avatar
    Eliot Berriot committed
            <h2>
    
              <translate>Are you sure you want to log out?</translate>
    
    Eliot Berriot's avatar
    Eliot Berriot committed
            </h2>
            <p v-translate="{username: $store.state.auth.username}">You are currently logged in as %{ username }</p>
    
            <button class="ui button" @click="$store.dispatch('auth/logout')"><translate>Yes, log me out!</translate></button>
    
    Eliot Berriot's avatar
    Eliot Berriot committed
      computed: {
        labels () {
          return {
            title: this.$gettext('Log Out')
          }
        }
      }
    
    }
    </script>
    
    <!-- Add "scoped" attribute to limit CSS to this component only -->
    <style scoped>
    </style>