mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 03:18:23 -05:00
[PR #12426] [MERGED] fix: Conditionally hide export buttons #9706
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/12426
Author: @silentoplayz
Created: 4/4/2025
Status: ✅ Merged
Merged: 4/5/2025
Merged by: @tjbck
Base:
dev← Head:fix-feedback📝 Commits (3)
2b0d9c2fix: don't show export button if nothing to export1366822Update Feedbacks.svelte41b9ff9fix: funcs, models, prompts, & tools conditional export button📊 Changes
5 files changed (+125 additions, -120 deletions)
View changed files
📝
src/lib/components/admin/Evaluations/Feedbacks.svelte(+3 -2)📝
src/lib/components/admin/Functions.svelte(+33 -31)📝
src/lib/components/workspace/Models.svelte(+26 -25)📝
src/lib/components/workspace/Prompts.svelte(+29 -26)📝
src/lib/components/workspace/Tools.svelte(+34 -36)📄 Description
Pull Request Checklist
devbranch.Changelog Entry
Description
Exportbutton on theModels,Prompts,Functions,Tools, andFeedbackspages when there is no existing content available to export. This improves the user interface by preventing users from seeing or clicking an action that cannot be performed due to the absence of data.Changed
Export {content}button if the {content} array contains items.Fixed
Exportbutton was displayed even when there was no {content} to export.Additional Information
Screenshots or Videos
Before:After:🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.