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:
parent
b60939e483
commit
6664a129b0
@ -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"
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user