|
1 | 1 | {{#if hasBlockParams}} |
2 | 2 | {{yield (hash |
3 | 3 | editor=(component 'ember-inline-editor' |
4 | | - isVisible=isEditing |
5 | | - value=(readonly value) |
6 | | - field=field |
7 | | - fieldWidth=fieldWidth |
8 | | - showSaveButton=showSaveButton |
9 | | - showCancelButton=showCancelButton |
10 | | - saveLabel=saveLabel |
11 | | - cancelLabel=cancelLabel |
12 | | - editorClass=editorClass |
13 | | - buttonContainerClass=buttonContainerClass |
14 | | - saveButtonClass=saveButtonClass |
15 | | - cancelButtonClass=cancelButtonClass |
16 | | - hintLabel=hintLabel |
17 | | - on-update=(action (mut value)) |
| 4 | + isVisible=this.isEditing |
| 5 | + value=(readonly this.value) |
| 6 | + field=this.field |
| 7 | + fieldWidth=this.fieldWidth |
| 8 | + showSaveButton=this.showSaveButton |
| 9 | + showCancelButton=this.showCancelButton |
| 10 | + saveLabel=this.saveLabel |
| 11 | + cancelLabel=this.cancelLabel |
| 12 | + editorClass=this.editorClass |
| 13 | + buttonContainerClass=this.buttonContainerClass |
| 14 | + saveButtonClass=this.saveButtonClass |
| 15 | + cancelButtonClass=this.cancelButtonClass |
| 16 | + hintLabel=this.hintLabel |
| 17 | + on-update=(action (mut this.value)) |
18 | 18 | on-save=(action "save") |
19 | 19 | on-cancel=(action "cancel") |
20 | 20 | ) |
21 | 21 |
|
22 | 22 | editable=(component 'ember-inline-editable' |
23 | | - isVisible=isNotEditing |
24 | | - value=(readonly value) |
25 | | - placeholder=placeholder |
26 | | - showEditButton=showEditButton |
27 | | - editButtonClass=editButtonClass |
| 23 | + isVisible=this.isNotEditing |
| 24 | + value=(readonly this.value) |
| 25 | + placeholder=this.placeholder |
| 26 | + showEditButton=this.showEditButton |
| 27 | + editButtonClass=this.editButtonClass |
28 | 28 | on-edit=(action "startEditing") |
29 | 29 | ) |
30 | 30 | ) |
31 | | - (action "save") (action "cancel") |
| 31 | + (action "save") |
| 32 | + (action "cancel") |
32 | 33 | }} |
33 | 34 | {{else}} |
34 | | - {{#if isEditing}} |
| 35 | + {{#if this.isEditing}} |
35 | 36 | {{ember-inline-editor |
36 | | - isVisible=isEditing |
37 | | - value=(readonly value) |
38 | | - field=field |
39 | | - fieldWidth=fieldWidth |
40 | | - showSaveButton=showSaveButton |
41 | | - showCancelButton=showCancelButton |
42 | | - saveLabel=saveLabel |
43 | | - cancelLabel=cancelLabel |
44 | | - editorClass=editorClass |
45 | | - buttonContainerClass=buttonContainerClass |
46 | | - saveButtonClass=saveButtonClass |
47 | | - cancelButtonClass=cancelButtonClass |
48 | | - hintLabel=hintLabel |
49 | | - on-update=(action (mut value)) |
| 37 | + isVisible=this.isEditing |
| 38 | + value=(readonly this.value) |
| 39 | + field=this.field |
| 40 | + fieldWidth=this.fieldWidth |
| 41 | + showSaveButton=this.showSaveButton |
| 42 | + showCancelButton=this.showCancelButton |
| 43 | + saveLabel=this.saveLabel |
| 44 | + cancelLabel=this.cancelLabel |
| 45 | + editorClass=this.editorClass |
| 46 | + buttonContainerClass=this.buttonContainerClass |
| 47 | + saveButtonClass=this.saveButtonClass |
| 48 | + cancelButtonClass=this.cancelButtonClass |
| 49 | + hintLabel=this.hintLabel |
| 50 | + on-update=(action (mut this.value)) |
50 | 51 | on-save=(action "save") |
51 | 52 | on-cancel=(action "cancel") |
52 | 53 | }} |
53 | 54 | {{else}} |
54 | 55 | {{ember-inline-editable |
55 | | - isVisible=isNotEditing |
56 | | - value=(readonly value) |
57 | | - placeholder=placeholder |
58 | | - editLabel=editLabel |
59 | | - showEditButton=showEditButton |
60 | | - editButtonClass=editButtonClass |
| 56 | + isVisible=this.isNotEditing |
| 57 | + value=(readonly this.value) |
| 58 | + placeholder=this.placeholder |
| 59 | + editLabel=this.editLabel |
| 60 | + showEditButton=this.showEditButton |
| 61 | + editButtonClass=this.editButtonClass |
61 | 62 | on-edit=(action "startEditing") |
62 | 63 | }} |
63 | 64 | {{/if}} |
|
0 commit comments