admin menu on table view fixed

This commit is contained in:
zurdi
2023-11-02 00:29:33 +01:00
parent be02e91054
commit 548055d2a4
2 changed files with 3 additions and 2 deletions

View File

@@ -49,7 +49,6 @@ const downloadUrl = `${window.location.origin}${props.rom.download_path}`;
<v-menu location="bottom">
<template v-slot:activator="{ props }">
<v-btn
@click=""
:disabled="!auth.scopes.includes('roms.write')"
v-bind="props"
icon="mdi-dots-vertical"

View File

@@ -4,6 +4,7 @@ import { useRouter } from "vue-router";
import { downloadRomApi } from "@/services/api";
import storeDownload from "@/stores/download";
import storeRoms from "@/stores/roms";
import storeAuth from "@/stores/auth";
import { VDataTable } from "vuetify/labs/VDataTable";
import AdminMenu from "@/components/AdminMenu/Base.vue";
@@ -56,8 +57,8 @@ const router = useRouter();
const downloadStore = storeDownload();
const romsStore = storeRoms();
const saveFiles = ref(false);
const auth = storeAuth();
const romsPerPage = ref(-1);
const emitter = inject("emitter");
// Functions
function rowClick(_, row) {
@@ -137,6 +138,7 @@ function rowClick(_, row) {
<template v-slot:activator="{ props }">
<v-btn
rounded="0"
:disabled="!auth.scopes.includes('roms.write')"
v-bind="props"
size="small"
variant="text"