Fix badges and add bd-v2 to body

This commit is contained in:
Jiiks 2018-08-15 06:41:44 +03:00
parent 9e80f7b051
commit 303addae42
2 changed files with 2 additions and 1 deletions

View File

@ -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');

View File

@ -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>