@tonguetoquill/collection 0.1.8 → 0.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -193,11 +193,12 @@ cards:
|
|
|
193
193
|
title: Action Decision
|
|
194
194
|
type: string
|
|
195
195
|
enum:
|
|
196
|
+
- undecided
|
|
196
197
|
- approve
|
|
197
198
|
- disapprove
|
|
198
199
|
ui:
|
|
199
|
-
group:
|
|
200
|
-
description: "Action taken by the endorser.
|
|
200
|
+
group: Action
|
|
201
|
+
description: "Action taken by the endorser. Use 'undecided' to display the Approve/Disapprove line with neither option circled, 'approve' or 'disapprove' to circle the selected option."
|
|
201
202
|
attachments:
|
|
202
203
|
title: Attachments for this endorsement
|
|
203
204
|
type: array
|
|
@@ -160,11 +160,15 @@
|
|
|
160
160
|
// Use baseline parameter to maintain vertical text alignment
|
|
161
161
|
let approve-text = if action == "approve" {
|
|
162
162
|
box(stroke: 0.5pt + black, radius: 2pt, inset: 2pt, baseline: 2pt)[Approve]
|
|
163
|
+
} else if action == "disapprove" {
|
|
164
|
+
strike[Approve]
|
|
163
165
|
} else {
|
|
164
166
|
[Approve]
|
|
165
167
|
}
|
|
166
168
|
let disapprove-text = if action == "disapprove" {
|
|
167
169
|
box(stroke: 0.5pt + black, radius: 2pt, inset: 2pt, baseline: 2pt)[Disapprove]
|
|
170
|
+
} else if action == "approve" {
|
|
171
|
+
strike[Disapprove]
|
|
168
172
|
} else {
|
|
169
173
|
[Disapprove]
|
|
170
174
|
}
|