diff --git a/src/components/user_settings/user_settings.js b/src/components/user_settings/user_settings.js index c22411dd..2f384711 100644 --- a/src/components/user_settings/user_settings.js +++ b/src/components/user_settings/user_settings.js @@ -1,5 +1,4 @@ import StyleSwitcher from '../style_switcher/style_switcher.vue' -import { filter, trim } from 'lodash' const UserSettings = { data () { @@ -27,7 +26,7 @@ const UserSettings = { const name = this.newname const description = this.newbio this.$store.state.api.backendInteractor.updateProfile({params: {name, description}}).then((user) => { - if(!user.error) { + if (!user.error) { this.$store.commit('addNewUsers', [user]) this.$store.commit('setCurrentUser', user) } @@ -95,8 +94,10 @@ const UserSettings = { submitBanner () { if (!this.previewbanner) { return } - let banner = this.previewbanner + let banner = this.previewbanner + // eslint-disable-next-line no-undef let imginfo = new Image() + /* eslint-disable camelcase */ let offset_top, offset_left, width, height imginfo.src = banner width = imginfo.width @@ -114,10 +115,12 @@ const UserSettings = { } this.uploadingbanner = false }) + /* eslint-enable camelcase */ }, submitBg () { if (!this.previewbg) { return } let img = this.previewbg + // eslint-disable-next-line no-undef let imginfo = new Image() let cropX, cropY, cropW, cropH imginfo.src = img diff --git a/src/components/user_settings/user_settings.vue b/src/components/user_settings/user_settings.vue index b7521a32..49d2c8c9 100644 --- a/src/components/user_settings/user_settings.vue +++ b/src/components/user_settings/user_settings.vue @@ -78,10 +78,6 @@ border-radius: 5px; } - .bg { - max-width: 400px; - border-radius: 5px; - } .uploading { font-size: 1.5em; margin: 0.25em;