|
99 | 99 | </f7-button>
|
100 | 100 | </div>
|
101 | 101 | <div v-for="section in ['triggers', 'actions', 'conditions']" :key="section">
|
102 |
| - <f7-block-title medium style="margin-bottom: var(--f7-list-margin-vertical)" v-if="isEditable || rule[section].length > 0"> |
103 |
| - {{ SECTION_LABELS[section][0] }} |
104 |
| - </f7-block-title> |
| 102 | + <template v-if="isEditable || rule[section].length > 0"> |
| 103 | + <f7-block-title medium class="no-margin-bottom"> |
| 104 | + {{ SECTION_LABELS[section][0] }} |
| 105 | + </f7-block-title> |
| 106 | + <f7-block-footer class="no-margin-top margin-horizontal" style="margin-bottom: var(--f7-list-margin-vertical)"> |
| 107 | + {{ SECTION_LABELS[section][1] }} |
| 108 | + </f7-block-footer> |
| 109 | + </template> |
105 | 110 | <f7-list sortable swipeout media-list @sortable:sort="(ev) => reorderModule(ev, section)">
|
106 | 111 | <f7-list-item media
|
107 | 112 | :title="mod.label || suggestedModuleTitle(mod, null, section)"
|
|
118 | 123 | </f7-list-item>
|
119 | 124 | </f7-list>
|
120 | 125 | <f7-list v-if="isEditable">
|
121 |
| - <f7-list-item link no-chevron media-item :color="($theme.dark) ? 'black' : 'white'" :subtitle="SECTION_LABELS[section][1]" @click="addModule(section)"> |
| 126 | + <f7-list-item link no-chevron media-item :color="($theme.dark) ? 'black' : 'white'" :subtitle="SECTION_LABELS[section][2]" @click="addModule(section)"> |
122 | 127 | <f7-icon slot="media" color="green" aurora="f7:plus_circle_fill" ios="f7:plus_circle_fill" md="material:control_point" />
|
123 | 128 | </f7-list-item>
|
124 | 129 | <!-- <f7-list-button :color="(showModuleControls) ? 'gray' : 'blue'" :title="sectionLabels[section][1]"></f7-list-button> -->
|
@@ -202,9 +207,9 @@ export default {
|
202 | 207 | data () {
|
203 | 208 | return {
|
204 | 209 | SECTION_LABELS: {
|
205 |
| - triggers: ['When', 'Add Trigger'], |
206 |
| - actions: ['Then', 'Add Action'], |
207 |
| - conditions: ['But only if', 'Add Condition'] |
| 210 | + triggers: ['When', 'Events that cause this rule to run', 'Add Trigger'], |
| 211 | + actions: ['Then', 'Actions to take when this rule runs', 'Add Action'], |
| 212 | + conditions: ['But only if', 'Conditions that must be matched for the actions of this rule to run', 'Add Condition'] |
208 | 213 | },
|
209 | 214 |
|
210 | 215 | ready: false,
|
|
0 commit comments