diff options
| author | Zero King <l2dy@icloud.com> | 2021-04-12 14:04:10 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-12 23:04:10 +0900 |
| commit | 1019e0bcfd80f411940c86bf8333282ea387693b (patch) | |
| tree | 9feee2cf0e4fb9e79288b9924815b6ddab0e5902 /src/client/components | |
| parent | fix bug (diff) | |
| download | sharkey-1019e0bcfd80f411940c86bf8333282ea387693b.tar.gz sharkey-1019e0bcfd80f411940c86bf8333282ea387693b.tar.bz2 sharkey-1019e0bcfd80f411940c86bf8333282ea387693b.zip | |
Add prop validations in MkAcct (#7439)
Diffstat (limited to 'src/client/components')
| -rw-r--r-- | src/client/components/global/acct.vue | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/client/components/global/acct.vue b/src/client/components/global/acct.vue index e3601ff797..8354760651 100644 --- a/src/client/components/global/acct.vue +++ b/src/client/components/global/acct.vue @@ -11,7 +11,16 @@ import { toUnicode } from 'punycode/'; import { host } from '@client/config'; export default defineComponent({ - props: ['user', 'detail'], + props: { + user: { + type: Object, + required: true + }, + detail: { + type: Boolean, + default: false + }, + }, data() { return { host: toUnicode(host), |