Add alert

This commit is contained in:
brunosimon
2017-08-15 18:13:14 +02:00
parent 4b4977cc1b
commit 0ff61b0c99
14 changed files with 93 additions and 9 deletions
+3
View File
@@ -0,0 +1,3 @@
<template src="./template.html"></template>
<script src="./script.js"></script>
<style src="./style.styl" lang="stylus" scoped></style>
+12
View File
@@ -0,0 +1,12 @@
export default
{
name: 'alert',
methods:
{
onAlertClick()
{
this.$store.commit('setPendingAlert')
}
}
}
+4
View File
@@ -0,0 +1,4 @@
.alert
position fixed
bottom 0
right 30px
+3
View File
@@ -0,0 +1,3 @@
<a href="#" class="alert" @click.prevent="onAlertClick">
/!\
</a>