mirror of
https://github.com/paricafe/misskey.git
synced 2025-02-25 21:34:24 -06:00
disabled unknown OnlineIndicator
This commit is contained in:
parent
9062497dc2
commit
f5632915f0
1 changed files with 1 additions and 6 deletions
|
@ -5,12 +5,12 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div
|
<div
|
||||||
|
v-if="user.onlineStatus !== 'unknown'"
|
||||||
v-tooltip="text"
|
v-tooltip="text"
|
||||||
:class="[$style.root, {
|
:class="[$style.root, {
|
||||||
[$style.status_online]: user.onlineStatus === 'online',
|
[$style.status_online]: user.onlineStatus === 'online',
|
||||||
[$style.status_active]: user.onlineStatus === 'active',
|
[$style.status_active]: user.onlineStatus === 'active',
|
||||||
[$style.status_offline]: user.onlineStatus === 'offline',
|
[$style.status_offline]: user.onlineStatus === 'offline',
|
||||||
[$style.status_unknown]: user.onlineStatus === 'unknown',
|
|
||||||
}]"
|
}]"
|
||||||
></div>
|
></div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -29,7 +29,6 @@ const text = computed(() => {
|
||||||
case 'online': return i18n.ts.online;
|
case 'online': return i18n.ts.online;
|
||||||
case 'active': return i18n.ts.active;
|
case 'active': return i18n.ts.active;
|
||||||
case 'offline': return i18n.ts.offline;
|
case 'offline': return i18n.ts.offline;
|
||||||
case 'unknown': return i18n.ts.unknown;
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
@ -50,9 +49,5 @@ const text = computed(() => {
|
||||||
&.status_offline {
|
&.status_offline {
|
||||||
background: #ea5353;
|
background: #ea5353;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.status_unknown {
|
|
||||||
background: #888;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Add table
Reference in a new issue