From 51832840131ae7cc284f4416836ef85c0bd119bb Mon Sep 17 00:00:00 2001 From: rajatchauhanyti Date: Wed, 1 Jun 2022 13:35:18 +0530 Subject: [PATCH] revert old changes --- client/components/login.vue | 7 +++---- server/graph/resolvers/site.js | 10 +++++----- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/client/components/login.vue b/client/components/login.vue index e6b2d0bb..f74a4744 100644 --- a/client/components/login.vue +++ b/client/components/login.vue @@ -4,7 +4,7 @@ .login-sd .d-flex.mb-5 .login-logo - v-avatar(tile, size='44') + v-avatar(tile, size='34') v-img(:src='logoUrl') .login-title .text-h6.grey--text.text--darken-4 {{ siteTitle }} @@ -723,8 +723,8 @@ export default { padding: 12px 0 0 12px; width: 58px; height: 58px; - // background-color: #222; - // margin-left: 12px; + background-color: #222; + margin-left: 12px; border-bottom-left-radius: 7px; border-bottom-right-radius: 7px; } @@ -732,7 +732,6 @@ export default { &-title { height: 58px; padding-left: 12px; - padding-top: 8px; display: flex; align-items: center; text-shadow: .5px .5px #FFF; diff --git a/server/graph/resolvers/site.js b/server/graph/resolvers/site.js index f36b2f7f..c325706c 100644 --- a/server/graph/resolvers/site.js +++ b/server/graph/resolvers/site.js @@ -38,7 +38,7 @@ module.exports = { SiteMutation: { async updateConfig(obj, args, context) { try { - if (args.hasOwnProperty('host')) { + if (args.host) { let siteHost = _.trim(args.host) if (siteHost.endsWith('/')) { siteHost = siteHost.slice(0, -1) @@ -46,19 +46,19 @@ module.exports = { WIKI.config.host = siteHost } - if (args.hasOwnProperty('title')) { + if (args.title) { WIKI.config.title = _.trim(args.title) } - if (args.hasOwnProperty('company')) { + if (args.company) { WIKI.config.company = _.trim(args.company) } - if (args.hasOwnProperty('contentLicense')) { + if (args.contentLicense) { WIKI.config.contentLicense = args.contentLicense } - if (args.hasOwnProperty('logoUrl')) { + if (args.logoUrl) { WIKI.config.logoUrl = _.trim(args.logoUrl) }