Execute function after activating tag
This commit is contained in:
parent
1ed67e7c10
commit
57cb4626e4
1 changed files with 8 additions and 0 deletions
|
@ -10,6 +10,7 @@ import { Tag } from "../../appwrite";
|
||||||
import { activateTag } from "./activateTag";
|
import { activateTag } from "./activateTag";
|
||||||
import { sleep } from '../../utils/sleep';
|
import { sleep } from '../../utils/sleep';
|
||||||
import { openFunctionTagsInBrowser } from './openFunctionTagsInBrowser';
|
import { openFunctionTagsInBrowser } from './openFunctionTagsInBrowser';
|
||||||
|
import { executeFunction } from './createExecution';
|
||||||
|
|
||||||
export async function createTag(item?: TagsTreeItem | Uri): Promise<void> {
|
export async function createTag(item?: TagsTreeItem | Uri): Promise<void> {
|
||||||
if (item instanceof Uri) {
|
if (item instanceof Uri) {
|
||||||
|
@ -158,6 +159,13 @@ async function tagNotification(tag: Tag): Promise<void> {
|
||||||
);
|
);
|
||||||
if (action === "Activate tag") {
|
if (action === "Activate tag") {
|
||||||
await activateTag(tag);
|
await activateTag(tag);
|
||||||
|
const action = await window.showInformationMessage(
|
||||||
|
`Successfully activated tag.`,
|
||||||
|
"Execute function",
|
||||||
|
);
|
||||||
|
if (action === 'Execute function') {
|
||||||
|
await executeFunction(tag.functionId);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (action === "View in console") {
|
if (action === "View in console") {
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in a new issue