client: refactor classic.header.vue to composition api #97
Loading…
Reference in a new issue
No description provided.
Delete branch "refactor/client/classic.header.vue"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ -26,3 +26,3 @@
<i class="fas fa-cog fa-fw"></i>
</MkA>
<button v-click-anime class="item _button account" @click="openAccountMenu">
<button v-if="$i" v-click-anime class="item _button account" @click="openAccountMenu">
I don't think checking for
$i
is necessary here, since this component is intended for classic UI which is only shown for logged in users. Visitors will only see the visitor UI.@ -45,3 +43,3 @@
import * as os from '@/os';
import { menuDef } from '@/menu';
import { openAccountMenu } from '@/account';
import { openAccountMenu as openAccountMenu_, $i, iAmModerator } from '@/account';
I think it would be nicer to rename the function thats defined here and import it with the correct name.
0d8be2651e
to9a22905e85