Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Commit c3bea77

Browse files
committed
Merge pull request #8058 from stowball/extensions-updates-open-correct-tab
Open extension dialog to Installed tab if updates are available
2 parents 26adeac + fa0eabd commit c3bea77

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

src/extensibility/ExtensionManagerDialog.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,8 +293,14 @@ define(function (require, exports, module) {
293293
});
294294
});
295295

296-
// Show the first tab
297-
$dlg.find(".nav-tabs a:first").tab("show");
296+
// Open dialog to Installed tab if extension updates are available
297+
if ($("#toolbar-extension-manager").hasClass('updatesAvailable')) {
298+
$dlg.find(".nav-tabs a.installed").tab("show");
299+
}
300+
// Otherwise show the first tab
301+
else {
302+
$dlg.find(".nav-tabs a:first").tab("show");
303+
}
298304
});
299305

300306
// Handle the install button.

0 commit comments

Comments
 (0)