Skip to content

Commit 1b95cd2

Browse files
fix: Prioritize filename over name in model upload dialogs (#7203)
## Summary Updates model upload dialogs to display filename instead of name and removes redundant background styling from confirmation dialog. ## Changes - **What**: Swap priority of filename/name display in upload confirmation and progress dialogs - **What**: Remove background styling from filename display in confirmation dialog ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-7203-fix-Prioritize-filename-over-name-in-model-upload-dialogs-2c16d73d365081b788deec1bb2989ed5) by [Unito](https://www.unito.io) Co-authored-by: Claude <noreply@anthropic.com>
1 parent 10288ee commit 1b95cd2

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/platform/assets/components/UploadModelConfirmation.vue

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,8 @@
55
<p class="m-0">
66
{{ $t('assetBrowser.modelAssociatedWithLink') }}
77
</p>
8-
<p
9-
class="mt-0 bg-modal-card-background text-base-foreground p-3 rounded-lg"
10-
>
11-
{{ metadata?.name || metadata?.filename }}
8+
<p class="mt-0 text-base-foreground rounded-lg">
9+
{{ metadata?.filename || metadata?.name }}
1210
</p>
1311
</div>
1412

src/platform/assets/components/UploadModelProgress.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
>
3030
<div class="flex flex-col justify-center items-start gap-1 flex-1">
3131
<p class="text-base-foreground m-0">
32-
{{ metadata?.name || metadata?.filename }}
32+
{{ metadata?.filename || metadata?.name }}
3333
</p>
3434
<p class="text-sm text-muted m-0">
3535
<!-- Going to want to add another translation here to get a nice display name. -->

0 commit comments

Comments
 (0)