فهرست منبع

debug: ultra-visible edit button

unknown 1 روز پیش
والد
کامیت
f9b8bdb03b
1فایلهای تغییر یافته به همراه6 افزوده شده و 2 حذف شده
  1. 6 2
      src/components/admin/OrderCard.vue

+ 6 - 2
src/components/admin/OrderCard.vue

@@ -180,6 +180,10 @@
         </div>
 
         <div class="mt-auto space-y-3">
+          <button @click="$emit('edit-order', order)" class="w-full py-2 bg-red-600 text-white font-bold rounded-xl mb-2">!!! DEBUG EDIT ORDER !!!</button>
+          <Button variant="outline" class="w-full gap-2 rounded-2xl h-12 border-primary/20 text-primary hover:bg-primary/10" @click="$emit('edit-order', order)">
+            <Edit2 class="w-4 h-4" />{{ t("admin.actions.edit") }}
+          </Button>
           <Button variant="hero" class="w-full gap-2 rounded-2xl h-12" @click="$emit('open-chat', order.id)">
             <MessageCircle class="w-4 h-4" />{{ t("admin.actions.chatWithClient") }}
           </Button>
@@ -231,7 +235,7 @@ import { useI18n } from "vue-i18n";
 import { 
   Clock, CheckCircle2, Truck, XCircle, AlertCircle, RefreshCw, 
   FileText, ExternalLink, ShieldCheck, Eye, Trash2, ImageIcon, 
-  EyeOff, MessageCircle, FileBox, Download, Star, Plus 
+  EyeOff, MessageCircle, FileBox, Download, Star, Plus, Edit2 
 } from "lucide-vue-next";
 import Button from "@/components/ui/button.vue";
 import OrderChat from "@/components/OrderChat.vue";
@@ -252,7 +256,7 @@ const props = defineProps<{
 const emit = defineEmits([
   'focus', 'update-status', 'delete-order', 'attach-file', 'upload-photo',
   'delete-file', 'delete-photo', 'toggle-photo-public', 'approve-review',
-  'open-chat', 'close-chat', 'update-notify', 'update-fiscal'
+  'open-chat', 'close-chat', 'update-notify', 'update-fiscal', 'edit-order'
 ]);
 
 const internalNotify = ref(props.notifyStatus);