// found in the LICENSE file.
/**
- * @fileoverview Oobe reset screen implementation.
+ * @fileoverview Device reset screen implementation.
*/
login.createScreen('ResetScreen', 'reset', function() {
return {
+
+ EXTERNAL_API: [
+ 'updateViewOnRollbackCall'
+ ],
+
/** @override */
decorate: function() {
$('reset-powerwash-help-link-on-rollback').addEventListener(
'click', function(event) {
chrome.send('resetOnLearnMore');
});
+ $('powerwash-help-link').addEventListener(
+ 'click', function(event) {
+ chrome.send('resetOnLearnMore');
+ });
},
/**
onBeforeShow: function(data) {
if (data === undefined)
return;
+ this.classList.remove('revert-promise');
if ('showRestartMsg' in data)
this.setRestartMsg_(data['showRestartMsg']);
if ('showRollbackOption' in data)
'resetWarningTextInitial');
$('reset-warning-details').textContent = loadTimeData.getString(
'resetWarningDetailsInitial');
- if (this.needRestart)
+ if (this.needRestart) {
$('reset-button').textContent = loadTimeData.getString(
'resetButtonRelaunch');
- else
+ } else {
$('reset-button').textContent = loadTimeData.getString(
'resetButtonPowerwash');
+ }
}
},
this.classList.toggle('norollback', !show_rollback);
this.showRollback = show_rollback;
},
+
+ updateViewOnRollbackCall: function() {
+ this.classList.add('revert-promise');
+ }
};
});