Skip to content

Commit a4a52f6

Browse files
committed
updates
1 parent c88cdac commit a4a52f6

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

MyApp/Pages/TextToBlazor.cshtml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,15 +134,16 @@ green-500 #22c55e
134134
</div>
135135
</div>
136136
</div>
137-
<div v-if="gist">
137+
<div v-if="gist" v-cloak>
138138
<gist-view :gist="gist"></gist-view>
139139

140-
<div class="mt-4 flex justify-center items-center">
140+
<div class="mt-4 flex justify-center items-center" v-cloak>
141141
<svg class="mr-1 w-5 h-5 text-indigo-600" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="m12 16l-5-5l1.4-1.45l2.6 2.6V4h2v8.15l2.6-2.6L17 11zm-6 4q-.825 0-1.412-.587T4 18v-3h2v3h12v-3h2v3q0 .825-.587 1.413T18 20z"/></svg>
142-
<div class="text-gray-500">download {{selectedModel ?? rightPart(gist.owner,'/')}}</div>
142+
<div class="text-gray-500">download</div>
143+
<img v-if="useModel" :src="getIcon(useModel)" class="ml-1.5 size-5 shrink-0" alt="Model Icon" :title="'download ' + useModel + ' data models'">
143144
</div>
144145

145-
<div class="mt-4 flex justify-center">
146+
<div class="mt-4 flex justify-center" v-cloak>
146147
<div>
147148
<a class="archive-url hover:no-underline" :href="archiveUrl('blazor-admin')" title="Download new Blazor Admin App">
148149
<div class="bg-white dark:bg-gray-800 px-4 py-4 mr-4 mb-4 rounded-lg shadow-lg text-center items-center justify-center hover:shadow-2xl dark:border-2 dark:border-pink-600 dark:hover:border-blue-600 dark:border-2 dark:border-pink-600 dark:hover:border-blue-600" style="min-width: 150px;">
@@ -291,6 +292,7 @@ const AppComponent = {
291292
const loadingGeneration = ref(false)
292293
const loadingGist = ref(false)
293294
const generation = ref()
295+
const useModel = computed(() => selectedModel.value ?? gist.value ? rightPart(gist.value.owner,'/') : '')
294296
const archiveUrl = (template) => !gist.value?.id ? null
295297
: `https://account.servicestack.net/archive/NetCoreTemplates/${template}?Name=${project.value}&okai=${gist.value.id}`
296298
@@ -427,6 +429,7 @@ const AppComponent = {
427429
accepted,
428430
infos,
429431
gist,
432+
useModel,
430433
loadingGeneration,
431434
loadingGist,
432435
selectedModel,

0 commit comments

Comments
 (0)