Skip to content

Commit

Permalink
v1.28.12
Browse files Browse the repository at this point in the history
  • Loading branch information
Kholid060 committed Sep 22, 2023
2 parents 7ccd96a + a8afb25 commit 175026c
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "automa",
"version": "1.28.11",
"version": "1.28.12",
"description": "An extension for automating your browser by connecting blocks",
"repository": {
"type": "git",
Expand Down
11 changes: 9 additions & 2 deletions src/components/content/shared/SharedElementSelector.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
</teleport>
</template>
<script setup>
import { reactive, watch, onMounted, onBeforeUnmount, toRaw } from 'vue';
import { reactive, watch, onBeforeUnmount, toRaw } from 'vue';
import { finder } from '@medv/finder';
import { debounce } from '@/utils/helper';
import getSelectorOptions from '@/content/elementSelector/getSelectorOptions';
Expand Down Expand Up @@ -339,7 +339,14 @@ watch(
elementsState.selected = props.selectedEls;
}
);
watch(
() => props.hide,
() => {
if (!props.hide) attachListeners();
else detachListeners();
},
{ immediate: true }
);
onMounted(attachListeners);
onBeforeUnmount(detachListeners);
</script>
1 change: 1 addition & 0 deletions src/content/elementSelector/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ const cardEl = ref('cardEl');
const state = reactive({
hide: false,
elSelector: '',
destroyed: false,
isDragging: false,
selectList: false,
isExecuting: false,
Expand Down
5 changes: 1 addition & 4 deletions src/utils/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,10 +205,7 @@ export async function fetchGapi(url, resource = {}, options = {}) {
resource
);

const isResJson = response.headers
.get('content-type')
?.includes('application/json');
const result = isResJson && (await response.json());
const result = parseJSON(await response.text(), null);
const insufficientScope =
response.status === 403 &&
result?.error?.message.includes('insufficient authentication scopes');
Expand Down
5 changes: 4 additions & 1 deletion src/workflowEngine/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,10 @@ export function startWorkflowExec(workflowData, options, isPopup = true) {
if (status === 'error' && !event.events.includes('finish:failed'))
return;

workflowEventHandler(event.action, { workflow: workflowRefData });
workflowEventHandler(event.action, {
workflow: workflowRefData,
variables: { ...engine.referenceData.variables },
});
});
}
});
Expand Down

0 comments on commit 175026c

Please sign in to comment.