fix: Issues #224 done.
This commit is contained in:
@@ -169,7 +169,7 @@
|
||||
<Column bodyClass="text-neutral-500">
|
||||
<template #body="slotProps">
|
||||
<ul class="opacity-0 group-hover:opacity-100 flex justify-end items-center gap-x-2 text-neutral-700">
|
||||
<li><span class="material-symbols-outlined align-bottom cursor-pointer hover:text-primary" @click="rename(slotProps.data.type, slotProps.data.id, 'list-hover')">edit_square</span></li>
|
||||
<li><span class="material-symbols-outlined align-bottom cursor-pointer hover:text-primary" @click="rename(slotProps.data.type, slotProps.data.id, 'list-hover', slotProps.data.name)">edit_square</span></li>
|
||||
<li><span class="material-symbols-outlined align-bottom cursor-pointer hover:text-primary" @click="download(slotProps.data.type, slotProps.data.id, 'list-hover', slotProps.data.name)">download</span></li>
|
||||
<li><span class="material-symbols-outlined align-bottom cursor-pointer hover:text-primary" @click="deleteFile(slotProps.data.type, slotProps.data.id, slotProps.data.name, 'list-hover')">delete</span></li>
|
||||
</ul>
|
||||
@@ -428,13 +428,15 @@
|
||||
* @param {string} type
|
||||
* @param {number} id
|
||||
* @param {string} source hover icon
|
||||
* @param {string} fileName
|
||||
*/
|
||||
rename(type, id, source) {
|
||||
rename(type, id, source, fileName) {
|
||||
if(type && id && source === 'list-hover') {
|
||||
this.selectedType = type;
|
||||
this.selectedId = id;
|
||||
this.selecteName = fileName;
|
||||
}
|
||||
renameModal(this.store.rename, this.selectedType, this.selectedId);
|
||||
renameModal(this.store.rename, this.selectedType, this.selectedId, this.selecteName);
|
||||
},
|
||||
/**
|
||||
* Delete file
|
||||
|
||||
Reference in New Issue
Block a user