mirror of
https://github.com/rommapp/romm.git
synced 2026-12-03 02:24:09 +01:00
admin menu on table view fixed
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user