fix editingsrows
This commit is contained in:
parent
8bd4c8d2c3
commit
554f82570f
@ -13,7 +13,6 @@
|
|||||||
const { isAuth,userInfo,logout } = useAuth();
|
const { isAuth,userInfo,logout } = useAuth();
|
||||||
|
|
||||||
const getMenuItems = () =>{
|
const getMenuItems = () =>{
|
||||||
console.log(isAuth.value)
|
|
||||||
if(isAuth.value){
|
if(isAuth.value){
|
||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
|
@ -97,6 +97,7 @@ async function onRowEditSave(event) {
|
|||||||
async function removeWarehouse(id) {
|
async function removeWarehouse(id) {
|
||||||
try {
|
try {
|
||||||
await deleteWarehouse(id);
|
await deleteWarehouse(id);
|
||||||
|
editingRows.value = [];
|
||||||
warehouses.value = await getWarehouses();
|
warehouses.value = await getWarehouses();
|
||||||
toast.add({ severity: 'success', life: 2500, summary: 'Succès', detail: 'Entrepôt supprimé' });
|
toast.add({ severity: 'success', life: 2500, summary: 'Succès', detail: 'Entrepôt supprimé' });
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user