Skip to content

Commit 5a2e207

Browse files
committed
Reimplemented edit menu for re enabling copy-paste :)
1 parent 2462b66 commit 5a2e207

File tree

5 files changed

+19
-3
lines changed

5 files changed

+19
-3
lines changed

electron/dist/electron/main.js

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

electron/dist/electron/main.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

electron/main.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,13 @@ const initWorkspace = () => {
168168
{ label: 'About', role: 'about' },
169169
{ label: 'Quit', role: 'quit' }
170170
]
171+
},
172+
{
173+
label: 'Edit',
174+
submenu: [
175+
{ label: 'Copy', role: 'copy' },
176+
{ label: 'Paste', role: 'paste' }
177+
]
171178
}
172179
];
173180
if (!environment.production) {

src/app/services/federated-account.service.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export class FederatedAccountService extends NativeService {
7777
* @param secretKey - secret key of the user
7878
* @param accessKey - access key of the AWS user
7979
*/
80-
addPlainAccountToWorkSpace(accountNumber: string, accountName: string, user: string, secretKey: string, accessKey: string) {
80+
addPlainAccountToWorkSpace(accountNumber: string, accountName: string, user: string, secretKey: string, accessKey: string, region: string) {
8181
const workspace = this.configurationService.getDefaultWorkspaceSync();
8282
const configuration = this.configurationService.getConfigurationFileSync();
8383

@@ -89,6 +89,7 @@ export class FederatedAccountService extends NativeService {
8989
accountId: accountNumber,
9090
accountName,
9191
accountNumber,
92+
region,
9293
type: AccountType.AWS_PLAIN_USER,
9394
user
9495
};

src/app/services/provider-manager.service.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,8 @@ export class ProviderManagerService {
253253
this.form.value.name,
254254
this.form.value.plainUser,
255255
this.form.value.secretKey,
256-
this.form .value.accessKey);
256+
this.form .value.accessKey,
257+
this.selectedRegion);
257258
return true;
258259
}
259260

0 commit comments

Comments
 (0)