[Editor] Add a missing parameter in the telemetry for the new alt text flow (bug 1914480)
This commit is contained in:
parent
584fef5823
commit
e8763a08ab
@ -159,7 +159,7 @@ class StampEditor extends AnnotationEditor {
|
||||
) {
|
||||
this._reportTelemetry({
|
||||
action: "pdfjs.image.image_added",
|
||||
data: { alt_text_modal: false },
|
||||
data: { alt_text_modal: false, alt_text_type: "empty" },
|
||||
});
|
||||
try {
|
||||
// The alt-text dialog isn't opened but we still want to guess the alt
|
||||
|
||||
@ -416,7 +416,7 @@ class NewAltTextManager {
|
||||
});
|
||||
this.#currentEditor._reportTelemetry({
|
||||
action: "pdfjs.image.image_added",
|
||||
data: { alt_text_modal: false },
|
||||
data: { alt_text_modal: true, alt_text_type: "skipped" },
|
||||
});
|
||||
this.#finish();
|
||||
}
|
||||
@ -464,7 +464,10 @@ class NewAltTextManager {
|
||||
}
|
||||
this.#currentEditor._reportTelemetry({
|
||||
action: "pdfjs.image.image_added",
|
||||
data: { alt_text_modal: true },
|
||||
data: {
|
||||
alt_text_modal: true,
|
||||
alt_text_type: altText ? "present" : "empty",
|
||||
},
|
||||
});
|
||||
|
||||
this.#currentEditor._reportTelemetry({
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user