web/satellite: add all needed methods to access grant webworker

WHAT:
all needed methods added to webworker

WHY:
to generate correct access grant

Change-Id: I700f24840d5bbe1515dbafa7f4e71e505205f903
This commit is contained in:
VitaliiShpital 2020-11-16 22:06:41 +02:00 committed by Vitalii Shpital
parent b60939e483
commit 6664a129b0
2 changed files with 13 additions and 2 deletions

View File

@ -5,7 +5,7 @@
<div class="access-grants">
<div class="access-grants__title-area">
<h2 class="access-grants__title-area__title">Access Grants</h2>
<div class="access-grants__title-area__right">
<div class="access-grants__title-area__right" v-if="accessGrantsList.length">
<VButton
v-if="selectedAccessGrantsAmount"
:label="deleteButtonLabel"

View File

@ -19,9 +19,20 @@ instantiateStreaming(response, go.importObject).then(result => go.run(result.ins
self.onmessage = function (event) {
const type = event.data.type;
let result;
switch (type) {
case 'GenerateAccess':
const result = self.generateAccessGrant();
result = self.generateAccessGrant();
self.postMessage(result);
break;
case 'NewPermission':
result = self.newPermission();
self.postMessage(result);
break;
case 'SetPermission':
result = self.setAPIKeyPermission();
self.postMessage(result);
break;