|
|
@@ -44,7 +44,7 @@ export function SettingsPage() {
|
|
|
const [editingTemplate, setEditingTemplate] = useState<NotificationTemplate | null>(null);
|
|
|
const [showLogViewer, setShowLogViewer] = useState(false);
|
|
|
const [defaultView, setDefaultViewState] = useState<string>(getDefaultView());
|
|
|
- const [activeTab, setActiveTab] = useState<'general' | 'plugs' | 'notifications' | 'apikeys' | 'virtual-printer'>('general');
|
|
|
+ const [activeTab, setActiveTab] = useState<'general' | 'plugs' | 'notifications' | 'filament' | 'apikeys' | 'virtual-printer'>('general');
|
|
|
const [showCreateAPIKey, setShowCreateAPIKey] = useState(false);
|
|
|
const [newAPIKeyName, setNewAPIKeyName] = useState('');
|
|
|
const [newAPIKeyPermissions, setNewAPIKeyPermissions] = useState({
|
|
|
@@ -450,6 +450,17 @@ export function SettingsPage() {
|
|
|
</span>
|
|
|
)}
|
|
|
</button>
|
|
|
+ <button
|
|
|
+ onClick={() => setActiveTab('filament')}
|
|
|
+ className={`px-4 py-2 text-sm font-medium transition-colors border-b-2 -mb-px flex items-center gap-2 ${
|
|
|
+ activeTab === 'filament'
|
|
|
+ ? 'text-bambu-green border-bambu-green'
|
|
|
+ : 'text-bambu-gray hover:text-white border-transparent'
|
|
|
+ }`}
|
|
|
+ >
|
|
|
+ <Droplets className="w-4 h-4" />
|
|
|
+ Filament
|
|
|
+ </button>
|
|
|
<button
|
|
|
onClick={() => setActiveTab('apikeys')}
|
|
|
className={`px-4 py-2 text-sm font-medium transition-colors border-b-2 -mb-px flex items-center gap-2 ${
|
|
|
@@ -992,8 +1003,6 @@ export function SettingsPage() {
|
|
|
</div>
|
|
|
</CardContent>
|
|
|
</Card>
|
|
|
-
|
|
|
- <SpoolmanSettings />
|
|
|
</div>
|
|
|
|
|
|
{/* Third Column - Updates */}
|
|
|
@@ -1911,6 +1920,13 @@ export function SettingsPage() {
|
|
|
<VirtualPrinterSettings />
|
|
|
)}
|
|
|
|
|
|
+ {/* Filament Tab */}
|
|
|
+ {activeTab === 'filament' && (
|
|
|
+ <div className="max-w-2xl">
|
|
|
+ <SpoolmanSettings />
|
|
|
+ </div>
|
|
|
+ )}
|
|
|
+
|
|
|
{/* Delete API Key Confirmation */}
|
|
|
{showDeleteAPIKeyConfirm !== null && (
|
|
|
<ConfirmModal
|