web/satellite: api key validation bug fixed (#3227)

This commit is contained in:
Vitalii Shpital 2019-10-11 13:18:00 +03:00 committed by GitHub
parent 4ba4d03fbf
commit 8170eb8d23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 5 deletions

View File

@ -201,12 +201,8 @@ export default class ApiKeysArea extends Vue {
pagination: HTMLElement & ResetPagination;
};
public mounted(): void {
this.$store.dispatch(FETCH, this.FIRST_PAGE);
}
public async beforeDestroy(): Promise<void> {
await this.$store.dispatch(API_KEYS_ACTIONS.CLEAR);
await this.$store.dispatch(API_KEYS_ACTIONS.CLEAR_SELECTION);
}
public async toggleSelection(apiKey: ApiKey): Promise<void> {

View File

@ -92,6 +92,7 @@ export default class ApiKeysCreationPopup extends Vue {
this.$store.dispatch(NOTIFICATION_ACTIONS.SUCCESS, 'Successfully created new api key');
this.key = createdApiKey.secret;
this.isLoading = false;
this.name = '';
try {
this.$store.dispatch(API_KEYS_ACTIONS.FETCH, this.FIRST_PAGE);