|
16 | 16 | data-testid="run-task"
|
17 | 17 | @click="runTask()"
|
18 | 18 | />
|
| 19 | + |
19 | 20 | <VueButton
|
20 | 21 | v-else
|
21 | 22 | icon-left="stop"
|
|
25 | 26 | @click="stopTask()"
|
26 | 27 | />
|
27 | 28 |
|
28 |
| - <VueDropdown |
29 |
| - v-if="task.prompts.length" |
30 |
| - placement="bottom" |
31 |
| - > |
32 |
| - <VueButton |
33 |
| - slot="trigger" |
34 |
| - icon-left="settings" |
35 |
| - class="icon-button primary" |
36 |
| - :disabled="task.status === 'running'" |
37 |
| - v-tooltip="$t('org.vue.views.project-task-details.parameters')" |
38 |
| - @click="showParameters = true" |
39 |
| - /> |
40 |
| - |
41 |
| - <div class="task-settings"> |
42 |
| - <div class="pane-toolbar"> |
43 |
| - <VueIcon icon="settings"/> |
44 |
| - <div class="title">{{ $t('org.vue.views.project-task-details.parameters') }}</div> |
45 |
| - <VueButton |
46 |
| - class="icon-button flat" |
47 |
| - icon-left="close" |
48 |
| - v-tooltip="$t('org.vue.views.project-task-details.actions.close')" |
49 |
| - v-close-popover |
50 |
| - /> |
51 |
| - </div> |
52 |
| - |
53 |
| - <PromptsList |
54 |
| - :prompts="visiblePrompts" |
55 |
| - class="prompts" |
56 |
| - @answer="answerPrompt" |
57 |
| - /> |
58 |
| - |
59 |
| - <div class="vue-ui-text info banner"> |
60 |
| - <VueIcon icon="info" class="big"/> |
61 |
| - <span>{{ $t('org.vue.views.project-task-details.parameters-info') }}</span> |
62 |
| - </div> |
63 |
| - </div> |
64 |
| - </VueDropdown> |
| 29 | + <VueButton |
| 30 | + slot="trigger" |
| 31 | + icon-left="settings" |
| 32 | + class="icon-button primary" |
| 33 | + :disabled="task.status === 'running'" |
| 34 | + v-tooltip="$t('org.vue.views.project-task-details.parameters')" |
| 35 | + @click="showParameters = true" |
| 36 | + /> |
65 | 37 |
|
66 | 38 | <div
|
67 | 39 | class="command"
|
|
131 | 103 | />
|
132 | 104 | </div>
|
133 | 105 | </template>
|
| 106 | + |
| 107 | + <VueModal |
| 108 | + v-if="showParameters" |
| 109 | + :title="$t('org.vue.views.project-task-details.parameters')" |
| 110 | + class="medium anchor" |
| 111 | + @close="showParameters = false" |
| 112 | + > |
| 113 | + <div class="default-body"> |
| 114 | + <PromptsList |
| 115 | + :prompts="visiblePrompts" |
| 116 | + @answer="answerPrompt" |
| 117 | + /> |
| 118 | + |
| 119 | + <div class="vue-ui-text info banner"> |
| 120 | + <VueIcon icon="info" class="big"/> |
| 121 | + <span>{{ $t('org.vue.views.project-task-details.parameters-info') }}</span> |
| 122 | + </div> |
| 123 | + </div> |
| 124 | + |
| 125 | + <div slot="footer" class="actions"> |
| 126 | + <VueButton |
| 127 | + class="primary big" |
| 128 | + :label="$t('org.vue.views.project-task-details.actions.close')" |
| 129 | + @click="showParameters = false" |
| 130 | + /> |
| 131 | + </div> |
| 132 | + </VueModal> |
134 | 133 | </div>
|
135 | 134 | </template>
|
136 | 135 |
|
|
0 commit comments