Commit 01c403a3 authored by Austin Tankiang's avatar Austin Tankiang Committed by Commit Bot

Set visual signal panel's message every updateItem()

Bug: 1065293
Change-Id: Idfefd8eb929a571240eb4af3ec57366167014efe
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2129467Reviewed-by: default avatarAlex Danilo <adanilo@chromium.org>
Commit-Queue: Austin Tankiang <austinct@chromium.org>
Cr-Commit-Position: refs/heads/master@{#755230}
parent 7bf41562
......@@ -436,18 +436,17 @@ class ProgressCenterPanel {
'destination': item.destinationMessage,
'count': item.itemCount,
};
const primaryText =
this.generateSourceString_(item, panelItem.userData);
panelItem.primaryText = primaryText;
panelItem.setAttribute('data-progress-id', item.id);
if (item.destinationMessage) {
panelItem.secondaryText =
strf('TO_FOLDER_NAME', item.destinationMessage);
}
// On progress panels, make the cancel button aria-lable more useful.
const cancelLabel = strf('CANCEL_ACTIVITY_LABEL', primaryText);
panelItem.closeButtonAriaLabel = cancelLabel;
}
const primaryText = this.generateSourceString_(item, panelItem.userData);
panelItem.primaryText = primaryText;
panelItem.setAttribute('data-progress-id', item.id);
if (item.destinationMessage) {
panelItem.secondaryText =
strf('TO_FOLDER_NAME', item.destinationMessage);
}
// On progress panels, make the cancel button aria-lable more useful.
const cancelLabel = strf('CANCEL_ACTIVITY_LABEL', primaryText);
panelItem.closeButtonAriaLabel = cancelLabel;
panelItem.signalCallback = (signal) => {
if (signal === 'cancel' && item.cancelCallback) {
item.cancelCallback();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment