Skip to content

Commit 8078a0b

Browse files
MachinisteWebchrisvfritz
authored andcommitted
Add this to docState context. (vuejs#975)
* Add french translation link Signed-off-by: Bruno Lesieur <bruno.lesieur@gmail.com> * kebab-case explaination updates Signed-off-by: Bruno Lesieur <bruno.lesieur@gmail.com> * kebab-case to kebab-cased Signed-off-by: Bruno Lesieur <bruno.lesieur@gmail.com> * Remove space before self-closing component * Add this before docState in JavaScript version. Signed-off-by: Bruno Lesieur <bruno.lesieur@gmail.com>
1 parent 5966644 commit 8078a0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/v2/guide/transitions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,7 @@ Which could also be written as:
651651
// ...
652652
computed: {
653653
buttonMessage: function () {
654-
switch (docState) {
654+
switch (this.docState) {
655655
case 'saved': return 'Edit'
656656
case 'edited': return 'Save'
657657
case 'editing': return 'Cancel'

0 commit comments

Comments
 (0)