File tree Expand file tree Collapse file tree 1 file changed +16
-6
lines changed Expand file tree Collapse file tree 1 file changed +16
-6
lines changed Original file line number Diff line number Diff line change 13
13
</b-alert >
14
14
<template v-else >
15
15
<b-alert
16
- v-if =" mostSkippedRulesNotIgnored.length"
16
+ v-if =" ignoreRuleAlert && mostSkippedRulesNotIgnored.length"
17
17
dismissible
18
+ @dismissed =" ignoreRuleAlert = false"
18
19
show
19
20
variant =" info"
20
21
>It looks like you have skipped the same type of suggestions many
21
22
times.<br />
22
23
If you don't want Wiper to suggest you these kinds of suggestions, you
23
24
can ignore them using the top-left menu.</b-alert
24
25
>
25
- <b-alert dismissible show variant =" light" >
26
+ <b-alert
27
+ v-if =" introAlert"
28
+ dismissible
29
+ @dismissed =" introAlert = false"
30
+ show
31
+ variant =" light"
32
+ >
26
33
Wiper found Wikipedia articles with potential spelling or grammar
27
34
issues.<br />
28
35
Click on <decision-button decision =" fix" read-only /> to fix the issue
43
50
44
51
<script >
45
52
import TileList from " @/components/TileList.vue" ;
46
- import axios from " axios" ;
47
- import { mapActions , mapGetters , mapState } from " vuex" ;
53
+ import { mapGetters , mapState } from " vuex" ;
48
54
import DecisionButton from " ../components/DecisionButton" ;
49
55
50
56
export default {
51
57
name: " game" ,
52
58
data : () => ({
53
59
error: null ,
60
+ introAlert: true ,
61
+ ignoreRuleAlert: true ,
54
62
}),
55
63
56
64
computed: {
@@ -72,6 +80,10 @@ export default {
72
80
},
73
81
74
82
methods: {
83
+ test () {
84
+ console .log (" !" );
85
+ this .ignoreRuleAlert = false ;
86
+ },
75
87
async applyDecision ({ decision, reason = null }) {
76
88
const vm = this ;
77
89
await this .$store
@@ -94,8 +106,6 @@ export default {
94
106
},
95
107
},
96
108
97
- ... mapActions (" tiles" , [" apply-decision" , " nextTile" ]),
98
-
99
109
components: {
100
110
DecisionButton,
101
111
TileList,
You can’t perform that action at this time.
0 commit comments