3
3
:name =" t('assistant', 'Getting results…')"
4
4
:description =" description" >
5
5
<template #action >
6
- <div class =" actions" >
6
+ <div class =" running- actions" >
7
7
<div v-if =" progress !== null"
8
8
class =" progress" >
9
9
<span >{{ formattedProgress }} %</span >
12
12
</div >
13
13
<NcButton
14
14
@click =" $emit('background-notify')" >
15
- {{ t('assistant', 'Run in the background and get notified') }}
15
+ <template #icon >
16
+ <ProgressClockIcon />
17
+ </template >
18
+ {{ t('assistant', 'Run task in the background and get notified') }}
19
+ </NcButton >
20
+ <NcButton
21
+ @click =" $emit('back')" >
22
+ <template #icon >
23
+ <ArrowLeftIcon />
24
+ </template >
25
+ {{ t('assistant', 'Back to the Assistant') }}
16
26
</NcButton >
17
27
<NcButton
18
28
@click =" $emit('cancel')" >
19
- {{ t('assistant', 'Cancel') }}
29
+ <template #icon >
30
+ <CloseIcon />
31
+ </template >
32
+ {{ t('assistant', 'Cancel task') }}
20
33
</NcButton >
21
34
</div >
22
35
</template >
27
40
</template >
28
41
29
42
<script >
43
+ import ArrowLeftIcon from ' vue-material-design-icons/ArrowLeft.vue'
44
+ import CloseIcon from ' vue-material-design-icons/Close.vue'
45
+ import ProgressClockIcon from ' vue-material-design-icons/ProgressClock.vue'
46
+
30
47
import NcLoadingIcon from ' @nextcloud/vue/dist/Components/NcLoadingIcon.js'
31
48
import NcButton from ' @nextcloud/vue/dist/Components/NcButton.js'
32
49
import NcProgressBar from ' @nextcloud/vue/dist/Components/NcProgressBar.js'
@@ -40,6 +57,9 @@ export default {
40
57
NcEmptyContent,
41
58
NcLoadingIcon,
42
59
NcProgressBar,
60
+ ArrowLeftIcon,
61
+ CloseIcon,
62
+ ProgressClockIcon,
43
63
},
44
64
45
65
props: {
@@ -56,6 +76,7 @@ export default {
56
76
emits: [
57
77
' cancel' ,
58
78
' background-notify' ,
79
+ ' back' ,
59
80
],
60
81
61
82
data () {
@@ -81,9 +102,10 @@ export default {
81
102
</script >
82
103
83
104
<style lang="scss">
84
- .actions {
105
+ .running- actions {
85
106
display : flex ;
86
107
flex-direction : column ;
108
+ align-items : center ;
87
109
gap : 12px ;
88
110
89
111
.progress {
0 commit comments