@@ -16,111 +16,111 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
16
16
-->
17
17
18
18
<template >
19
- <v-card >
20
- <!-- the mutation title -->
21
- <v-card-title class =" py-3" >
22
- {{ mutation._title }}
23
- </v-card-title >
24
- <v-card-text class =" card-text py-0 px-4" >
25
- <!-- the mutation description -->
26
- <v-expansion-panels
27
- v-bind =" extendedDescription ? { hover: true } : { readonly: true }"
19
+ <v-card >
20
+ <!-- the mutation title -->
21
+ <v-card-title class =" py-3" >
22
+ {{ mutation._title }}
23
+ </v-card-title >
24
+ <v-card-text class =" card-text py-0 px-4" >
25
+ <!-- the mutation description -->
26
+ <v-expansion-panels
27
+ v-bind =" extendedDescription ? { hover: true } : { readonly: true }"
28
+ >
29
+ <v-expansion-panel
30
+ class =" mutation-desc"
31
+ elevation =" 0"
28
32
>
29
- <v-expansion-panel
30
- class =" mutation-desc"
31
- elevation =" 0"
33
+ <v-expansion-panel-title
34
+ v-bind =" extendedDescription ? {} : {
35
+ expandIcon: null,
36
+ style: {
37
+ cursor: 'default',
38
+ },
39
+ }"
32
40
>
33
- <v-expansion-panel-title
34
- v-bind =" extendedDescription ? {} : {
35
- expandIcon: null,
36
- style: {
37
- cursor: 'default',
38
- },
39
- }"
40
- >
41
- <Markdown :markdown =" shortDescription" />
42
- </v-expansion-panel-title >
43
- <v-expansion-panel-text v-if =" extendedDescription" >
44
- <Markdown :markdown =" extendedDescription" />
45
- </v-expansion-panel-text >
46
- </v-expansion-panel >
47
- </v-expansion-panels >
48
- <v-divider />
49
- <EditRuntimeForm
50
- v-if =" mutation.name === 'editRuntime'"
51
- v-bind =" {
52
- cylcObject,
53
- types,
54
- }"
55
- ref =" form"
56
- v-model =" isValid"
57
- />
58
- <FormGenerator
59
- v-else
60
- v-bind =" {
61
- mutation,
62
- types,
63
- initialData,
64
- }"
65
- ref =" form"
66
- v-model =" isValid"
67
- />
68
- </v-card-text >
69
- <v-card-actions class =" pa-3" >
70
- <v-spacer ></v-spacer >
71
- <v-btn
72
- color =" grey"
73
- @click =" close()"
74
- variant =" text"
75
- data-cy =" cancel"
76
- >
77
- Cancel
78
- </v-btn >
79
- <v-btn
80
- color =" orange"
81
- @click =" $refs.form.reset()"
82
- variant =" text"
83
- data-cy =" reset"
41
+ <Markdown :markdown =" shortDescription" />
42
+ </v-expansion-panel-title >
43
+ <v-expansion-panel-text v-if =" extendedDescription" >
44
+ <Markdown :markdown =" extendedDescription" />
45
+ </v-expansion-panel-text >
46
+ </v-expansion-panel >
47
+ </v-expansion-panels >
48
+ <v-divider />
49
+ <EditRuntimeForm
50
+ v-if =" mutation.name === 'editRuntime'"
51
+ v-bind =" {
52
+ cylcObject,
53
+ types,
54
+ }"
55
+ ref =" form"
56
+ v-model =" isValid"
57
+ />
58
+ <FormGenerator
59
+ v-else
60
+ v-bind =" {
61
+ mutation,
62
+ types,
63
+ initialData,
64
+ }"
65
+ ref =" form"
66
+ v-model =" isValid"
67
+ />
68
+ </v-card-text >
69
+ <v-card-actions class =" pa-3" >
70
+ <v-spacer ></v-spacer >
71
+ <v-btn
72
+ color =" grey"
73
+ @click =" close()"
74
+ variant =" text"
75
+ data-cy =" cancel"
76
+ >
77
+ Cancel
78
+ </v-btn >
79
+ <v-btn
80
+ color =" orange"
81
+ @click =" $refs.form.reset()"
82
+ variant =" text"
83
+ data-cy =" reset"
84
+ >
85
+ Reset
86
+ </v-btn >
87
+ <v-btn
88
+ variant =" text"
89
+ :color =" isValid ? 'primary' : 'error'"
90
+ @click =" submit"
91
+ :loading =" submitting"
92
+ data-cy =" submit"
93
+ >
94
+ Submit
95
+ <v-tooltip
96
+ location =" top"
97
+ content-class =" bg-error"
98
+ :disabled =" isValid"
84
99
>
85
- Reset
86
- </v-btn >
100
+ <span >Form contains invalid or missing values!</span >
101
+ </v-tooltip >
102
+ </v-btn >
103
+ </v-card-actions >
104
+ <v-snackbar
105
+ v-model =" showWarning"
106
+ timeout =" 4e3"
107
+ color =" amber-accent-2"
108
+ data-cy =" warning-snack"
109
+ >
110
+ {{ warningMsg }}
111
+ <template v-slot :actions >
87
112
<v-btn
88
- variant =" text"
89
- :color =" isValid ? 'primary' : 'error'"
90
- @click =" submit"
91
- :loading =" submitting"
92
- data-cy =" submit"
113
+ @click =" showWarning = false"
114
+ icon
115
+ data-cy =" snack-close"
93
116
>
94
- Submit
95
- <v-tooltip
96
- location =" top"
97
- content-class =" bg-error"
98
- :disabled =" isValid"
99
- >
100
- <span >Form contains invalid or missing values!</span >
101
- </v-tooltip >
117
+ <v-icon >
118
+ {{ $options.icons.close }}
119
+ </v-icon >
102
120
</v-btn >
103
- </v-card-actions >
104
- <v-snackbar
105
- v-model =" showWarning"
106
- timeout =" 4e3"
107
- color =" amber-accent-2"
108
- data-cy =" warning-snack"
109
- >
110
- {{ warningMsg }}
111
- <template v-slot :actions >
112
- <v-btn
113
- @click =" showWarning = false"
114
- icon
115
- data-cy =" snack-close"
116
- >
117
- <v-icon >
118
- {{ $options.icons.close }}
119
- </v-icon >
120
- </v-btn >
121
- </template >
122
- </v-snackbar >
123
- </v-card >
121
+ </template >
122
+ </v-snackbar >
123
+ </v-card >
124
124
</template >
125
125
126
126
<script >
0 commit comments