blob: 5aeaa8b02ca83f96a535b623abb5960e263d116b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
<template>
<div class="notification" v-show="visible">
{{ text }} <iron-icon icon="clear" @click="onClickCloseButton"></iron-icon>
</div>
</template>
<script>
import '@polymer/iron-icon/iron-icon.js';
import '@polymer/iron-icons/iron-icons.js';
import '../webcomponents/ransomware-icons'
export default {
name: 'Notification',
props: {
text: {
type: String,
default: '',
required: true
},
visible: {
type: Boolean,
default: false
}
},
methods: {
onClickCloseButton: function() {
this.$emit('on-close');
}
},
watch: {
visible (val) {
this.visible = val
}
}
}
</script>
<style lang="scss">
.notification {
background-color: #E7E7E7;
color: #000;
font-size: 16px;
font-weight: bold;
width: 60%;
height: 60px;
display: flex;
justify-content: space-between;
align-items: center;
padding: 0px 10px 0px 10px !important;
margin: 20px 0px 20px 0px;
iron-icon {
cursor: pointer;
}
}
</style>
|