File tree Expand file tree Collapse file tree 1 file changed +28
-1
lines changed
Expand file tree Collapse file tree 1 file changed +28
-1
lines changed Original file line number Diff line number Diff line change @@ -373,6 +373,34 @@ export default function Ticket() {
373373 >
374374 save
375375 </ Button >
376+ { user . isAdmin && (
377+ < button
378+ type = "button"
379+ onClick = { ( ) => hide ( ! data . ticket . hidden ) }
380+ className = "inline-flex justify-center items-center gap-x-1.5 rounded-md bg-white px-5 py-2 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50"
381+ >
382+ { data . ticket . hidden ? "Show Global" : "Hide Ticket" }
383+ </ button >
384+ ) }
385+ { ! edit ? (
386+ < button
387+ type = "button"
388+ onClick = { ( ) => setEdit ( true ) }
389+ className = "inline-flex justify-center items-center gap-x-1.5 rounded-md bg-white px-5 py-2 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50"
390+ >
391+ { t ( "edit-btn" ) }
392+ </ button >
393+ ) : (
394+ < button
395+ type = "button"
396+ onClick = { ( ) => {
397+ update ( ) ;
398+ setEdit ( false ) ;
399+ } }
400+ className = "inline-flex justify-center gap-x-1.5 rounded-md bg-white px-5 py-2 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50"
401+ >
402+ { t ( "save" ) }
403+ </ button >
376404 ) }
377405 </ div >
378406 </ div >
@@ -431,7 +459,6 @@ export default function Ticket() {
431459 : n
432460 ? n . name
433461 : t ( "select_new_user" ) }
434- </ span >
435462 </ Listbox . Button >
436463
437464 < Transition
You can’t perform that action at this time.
0 commit comments