diff --git a/frontend/dashboard/src/api/commands/commands.ts b/frontend/dashboard/src/api/commands/commands.ts index cf56fcbe0..5ea579d54 100644 --- a/frontend/dashboard/src/api/commands/commands.ts +++ b/frontend/dashboard/src/api/commands/commands.ts @@ -50,6 +50,8 @@ export const useCommandsApi = createGlobalState(() => { name color } + expiredIn + expired } } `), diff --git a/frontend/dashboard/src/features/commands/composables/use-command-edit.ts b/frontend/dashboard/src/features/commands/composables/use-command-edit.ts index 6455f9f0e..0c6e7f87e 100644 --- a/frontend/dashboard/src/features/commands/composables/use-command-edit.ts +++ b/frontend/dashboard/src/features/commands/composables/use-command-edit.ts @@ -38,6 +38,7 @@ const defaultFormValue: EditableCommand = { cooldownRolesIds: [], enabledCategories: [], module: 'CUSTOM', + expiredIn: 0, } export const useCommandEdit = createGlobalState(() => { diff --git a/frontend/dashboard/src/features/commands/ui/edit-modal.vue b/frontend/dashboard/src/features/commands/ui/edit-modal.vue index bfdce1d03..149a15a4f 100644 --- a/frontend/dashboard/src/features/commands/ui/edit-modal.vue +++ b/frontend/dashboard/src/features/commands/ui/edit-modal.vue @@ -25,9 +25,9 @@ import { NGridItem, NInput, NInputGroup, + NInputGroupLabel, NInputNumber, - NModal, NSelect, NSpace, @@ -492,6 +492,14 @@ const showCategoryModal = ref(false) autosize /> + + + diff --git a/frontend/dashboard/src/locales/en.json b/frontend/dashboard/src/locales/en.json index 7ff49b847..fe277adba 100644 --- a/frontend/dashboard/src/locales/en.json +++ b/frontend/dashboard/src/locales/en.json @@ -132,6 +132,9 @@ "gameCategories": { "label": "Enable command only in certain categories (leave empty for disable)" }, + "expiration": { + "label": "Choose expiration time in minutes from now, 0 for not expiring", + }, "description": { "label": "Command Description" },