feat(ui): configured vs unconfigured visual treatment on Credentials cards
This commit is contained in:
@@ -8,7 +8,12 @@
|
||||
cols="12"
|
||||
md="6"
|
||||
>
|
||||
<v-card>
|
||||
<v-card
|
||||
:border="!!getCredential(platform)"
|
||||
:style="!getCredential(platform)
|
||||
? { border: '2px dashed var(--v-border-color)' }
|
||||
: { borderColor: 'rgb(var(--v-theme-success))' }"
|
||||
>
|
||||
<v-card-title class="d-flex align-center">
|
||||
<v-icon :color="getPlatformColor(platform)" class="mr-2">
|
||||
{{ getPlatformIcon(platform) }}
|
||||
@@ -53,15 +58,11 @@
|
||||
</v-list-item>
|
||||
</div>
|
||||
|
||||
<v-alert
|
||||
v-else
|
||||
type="info"
|
||||
variant="tonal"
|
||||
density="compact"
|
||||
class="mb-4"
|
||||
>
|
||||
No credentials stored for {{ info.name }}
|
||||
</v-alert>
|
||||
<div v-else class="text-center py-4 mb-4">
|
||||
<v-icon size="40" color="secondary" :style="{ opacity: 0.5 }">mdi-key-remove</v-icon>
|
||||
<div class="text-body-2 mt-2">No credentials configured</div>
|
||||
<div class="text-caption text-medium-emphasis mt-1">Add credentials to enable downloads</div>
|
||||
</div>
|
||||
</v-card-text>
|
||||
|
||||
<v-card-actions>
|
||||
@@ -75,7 +76,7 @@
|
||||
Verify
|
||||
</v-btn>
|
||||
<v-btn
|
||||
variant="text"
|
||||
:variant="getCredential(platform) ? 'text' : 'flat'"
|
||||
color="primary"
|
||||
@click="openUploadDialog(platform, info)"
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user