From e3d86eac95e0ef265f5eca70d7a2d16117f13a2c Mon Sep 17 00:00:00 2001 From: geoffrey45 Date: Mon, 14 Mar 2022 08:41:46 +0300 Subject: [PATCH] add track context menus --- src/composables/track_context.ts | 81 ++++++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 src/composables/track_context.ts diff --git a/src/composables/track_context.ts b/src/composables/track_context.ts new file mode 100644 index 00000000..fcb98def --- /dev/null +++ b/src/composables/track_context.ts @@ -0,0 +1,81 @@ +import Router from "../router"; + +interface Option { + type?: string; + label?: string; + action?: Function; + icon?: string; + critical?: Boolean; +} + +/** + * Returns a list of context menu items for a track. + * @param {any} track a track object. + * @return {Array