Fix badges and add bd-v2 to body
This commit is contained in:
parent
9e80f7b051
commit
303addae42
|
@ -17,6 +17,7 @@ import { BdSettingsWrapper, BdModals, BdToasts } from './components';
|
|||
export default class {
|
||||
|
||||
static initUiEvents() {
|
||||
document.body.classList.add('bd-v2');
|
||||
const hideButtonSetting = Settings.getSetting('ui', 'default', 'hide-button');
|
||||
hideButtonSetting.on('setting-updated', event => {
|
||||
if (event.value) document.body.classList.add('bd-hideButton');
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
*/
|
||||
|
||||
<template>
|
||||
<div class="bd-profileBadges" :class="[`bd-profileBadges${type}`]" @click.stop>
|
||||
<div class="bd-profileBadges" :class="[`bd-profileBadges${type ? type.charAt(0).toUpperCase() + type.slice(1) : ''}`]" @click.stop>
|
||||
<div v-if="contributor.developer" v-tooltip="'BetterDiscord Developer'" class="bd-profileBadge bd-profileBadgeDeveloper" @click="click"></div>
|
||||
<div v-else-if="contributor.webdev" v-tooltip="'BetterDiscord Web Developer'" class="bd-profileBadge bd-profileBadgeDeveloper" @click="click"></div>
|
||||
<div v-else-if="contributor.contributor" v-tooltip="'BetterDiscord Contributor'" class="bd-profileBadge bd-profileBadgeContributor" @click="click"></div>
|
||||
|
|
Loading…
Reference in New Issue