mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-23 14:11:13 -05:00
feat: Add refresh button and admin restrictions
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { Shield, ArrowLeft, Settings } from 'lucide-react';
|
||||
import { Shield, ArrowLeft, Settings, RefreshCw } from 'lucide-react';
|
||||
import { Button } from '@/components/ui/button';
|
||||
import { Link } from 'react-router-dom';
|
||||
import { ThemeToggle } from '@/components/theme/ThemeToggle';
|
||||
@@ -30,6 +30,15 @@ export function AdminHeader() {
|
||||
|
||||
{/* Right Section - Admin actions */}
|
||||
<div className="flex items-center gap-2">
|
||||
<Button
|
||||
variant="ghost"
|
||||
size="sm"
|
||||
onClick={() => window.location.reload()}
|
||||
title="Refresh admin data"
|
||||
>
|
||||
<RefreshCw className="w-4 h-4" />
|
||||
<span className="hidden sm:ml-2 sm:inline">Refresh</span>
|
||||
</Button>
|
||||
{permissions?.role_level === 'superuser' && (
|
||||
<Button variant="ghost" size="sm" asChild>
|
||||
<Link to="/admin/settings">
|
||||
|
||||
Reference in New Issue
Block a user