@lvce-editor/activity-bar-worker 5.2.0 → 5.4.0
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.
|
@@ -1455,9 +1455,12 @@ const getKeyBindings = () => {
|
|
|
1455
1455
|
};
|
|
1456
1456
|
|
|
1457
1457
|
const getMenuEntriesAccount = state => {
|
|
1458
|
-
const
|
|
1459
|
-
|
|
1460
|
-
|
|
1458
|
+
const {
|
|
1459
|
+
userLoginState
|
|
1460
|
+
} = state;
|
|
1461
|
+
const signInLabel = userLoginState === 'logging in' ? 'Signing In...' : 'Sign In';
|
|
1462
|
+
const signOutLabel = userLoginState === 'logging out' ? 'Signing Out...' : 'Sign Out';
|
|
1463
|
+
if (userLoginState === 'logged in' || userLoginState === 'logging out') {
|
|
1461
1464
|
return [{
|
|
1462
1465
|
command: 'ActivityBar.handleClickSignOut',
|
|
1463
1466
|
flags: None,
|
|
@@ -2934,6 +2937,8 @@ const commandMap = {
|
|
|
2934
2937
|
'ActivityBar.handleBadgeCountChange': wrapCommand(handleBadgeCountChange),
|
|
2935
2938
|
'ActivityBar.handleBlur': wrapCommand(handleBlur),
|
|
2936
2939
|
'ActivityBar.handleClick': wrapCommand(handleClick),
|
|
2940
|
+
'ActivityBar.handleClickAccount': wrapCommand(handleClickAccount),
|
|
2941
|
+
'ActivityBar.handleClickAdditionalViews': wrapCommand(handleClickAdditionalViews),
|
|
2937
2942
|
'ActivityBar.handleClickIndex': wrapCommand(handleClickIndex),
|
|
2938
2943
|
'ActivityBar.handleClickSettings': wrapCommand(handleClickSettings),
|
|
2939
2944
|
'ActivityBar.handleClickSignIn': wrapCommand(handleClickSignIn),
|