Skip to content

Commit

Permalink
Reimplemented edit menu for re enabling copy-paste :)
Browse files Browse the repository at this point in the history
  • Loading branch information
urz9999 committed Oct 6, 2020
1 parent 2462b66 commit 5a2e207
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 3 deletions.
7 changes: 7 additions & 0 deletions electron/dist/electron/main.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion electron/dist/electron/main.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions electron/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,13 @@ const initWorkspace = () => {
{ label: 'About', role: 'about' },
{ label: 'Quit', role: 'quit' }
]
},
{
label: 'Edit',
submenu: [
{ label: 'Copy', role: 'copy' },
{ label: 'Paste', role: 'paste' }
]
}
];
if (!environment.production) {
Expand Down
3 changes: 2 additions & 1 deletion src/app/services/federated-account.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export class FederatedAccountService extends NativeService {
* @param secretKey - secret key of the user
* @param accessKey - access key of the AWS user
*/
addPlainAccountToWorkSpace(accountNumber: string, accountName: string, user: string, secretKey: string, accessKey: string) {
addPlainAccountToWorkSpace(accountNumber: string, accountName: string, user: string, secretKey: string, accessKey: string, region: string) {
const workspace = this.configurationService.getDefaultWorkspaceSync();
const configuration = this.configurationService.getConfigurationFileSync();

Expand All @@ -89,6 +89,7 @@ export class FederatedAccountService extends NativeService {
accountId: accountNumber,
accountName,
accountNumber,
region,
type: AccountType.AWS_PLAIN_USER,
user
};
Expand Down
3 changes: 2 additions & 1 deletion src/app/services/provider-manager.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,8 @@ export class ProviderManagerService {
this.form.value.name,
this.form.value.plainUser,
this.form.value.secretKey,
this.form .value.accessKey);
this.form .value.accessKey,
this.selectedRegion);
return true;
}

Expand Down

0 comments on commit 5a2e207

Please sign in to comment.