summaryrefslogtreecommitdiff
path: root/packages/client/src/components/dialog.vue
diff options
context:
space:
mode:
Diffstat (limited to 'packages/client/src/components/dialog.vue')
-rw-r--r--packages/client/src/components/dialog.vue8
1 files changed, 7 insertions, 1 deletions
diff --git a/packages/client/src/components/dialog.vue b/packages/client/src/components/dialog.vue
index 1b03e65a3d..5d6678531d 100644
--- a/packages/client/src/components/dialog.vue
+++ b/packages/client/src/components/dialog.vue
@@ -14,7 +14,9 @@
</div>
<header v-if="title"><Mfm :text="title"/></header>
<div v-if="text" class="body"><Mfm :text="text"/></div>
- <MkInput v-if="input" v-model="inputValue" autofocus :type="input.type || 'text'" :placeholder="input.placeholder" @keydown="onInputKeydown"></MkInput>
+ <MkInput v-if="input" v-model="inputValue" autofocus :type="input.type || 'text'" :placeholder="input.placeholder" @keydown="onInputKeydown">
+ <template v-if="input.type === 'password'" #prefix><i class="fas fa-lock"></i></template>
+ </MkInput>
<MkSelect v-if="select" v-model="selectedValue" autofocus>
<template v-if="select.items">
<option v-for="item in select.items" :value="item.value">{{ item.text }}</option>
@@ -165,6 +167,10 @@ export default defineComponent({
> .icon {
font-size: 32px;
+ &.info {
+ color: #55c4dd;
+ }
+
&.success {
color: var(--success);
}