summaryrefslogtreecommitdiff
path: root/src/client/app/common
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-11-06 07:57:16 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-11-06 07:57:16 +0900
commitb195fd8145170be99da05e14ed815ef30846306c (patch)
tree5a91682b9c476afbb6e20e6aebaf65385191a39a /src/client/app/common
parentFix: download file (#3138) (diff)
downloadmisskey-b195fd8145170be99da05e14ed815ef30846306c.tar.gz
misskey-b195fd8145170be99da05e14ed815ef30846306c.tar.bz2
misskey-b195fd8145170be99da05e14ed815ef30846306c.zip
:art:
Diffstat (limited to 'src/client/app/common')
-rw-r--r--src/client/app/common/views/components/ui/input.vue13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/client/app/common/views/components/ui/input.vue b/src/client/app/common/views/components/ui/input.vue
index e63f0074c1..90df6fedb9 100644
--- a/src/client/app/common/views/components/ui/input.vue
+++ b/src/client/app/common/views/components/ui/input.vue
@@ -1,5 +1,5 @@
<template>
-<div class="ui-input" :class="[{ focused, filled, inline }, styl]">
+<div class="ui-input" :class="[{ focused, filled, inline, disabled }, styl]">
<div class="icon" ref="icon"><slot name="icon"></slot></div>
<div class="input">
<div class="password-meter" v-if="withPasswordMeter" v-show="passwordStrength != ''" :data-strength="passwordStrength">
@@ -11,6 +11,7 @@
<input ref="input"
:type="type"
v-model="v"
+ :disabled="disabled"
:required="required"
:readonly="readonly"
:pattern="pattern"
@@ -62,6 +63,10 @@ export default Vue.extend({
type: Boolean,
required: false
},
+ disabled: {
+ type: Boolean,
+ required: false
+ },
pattern: {
type: String,
required: false
@@ -353,4 +358,10 @@ root(fill)
display inline-block
margin 0
+ &.disabled
+ opacity 0.7
+
+ &, *
+ cursor not-allowed !important
+
</style>