diff --git a/app/javascript/dashboard/assets/scss/widgets/_sidemenu.scss b/app/javascript/dashboard/assets/scss/widgets/_sidemenu.scss index cb022e72b..12602cd37 100644 --- a/app/javascript/dashboard/assets/scss/widgets/_sidemenu.scss +++ b/app/javascript/dashboard/assets/scss/widgets/_sidemenu.scss @@ -92,16 +92,11 @@ } .current-user { + align-items: center; @include flex; flex-direction: row; cursor: pointer; - .current-user--thumbnail { - @include round-corner(); - height: $space-large; - width: $space-large; - } - .current-user--data { @include flex; flex-direction: column; @@ -120,6 +115,7 @@ font-size: $font-size-mini; margin-bottom: $zero; margin-left: $space-one; + text-transform: capitalize; } } diff --git a/app/javascript/dashboard/components/Thumbnail.vue b/app/javascript/dashboard/components/Thumbnail.vue deleted file mode 100644 index 19f293abb..000000000 --- a/app/javascript/dashboard/components/Thumbnail.vue +++ /dev/null @@ -1,19 +0,0 @@ - - \ No newline at end of file diff --git a/app/javascript/dashboard/components/index.js b/app/javascript/dashboard/components/index.js index 3f613e544..ab985f49d 100644 --- a/app/javascript/dashboard/components/index.js +++ b/app/javascript/dashboard/components/index.js @@ -2,7 +2,6 @@ /* eslint-env browser */ import Modal from './Modal'; -import Thumbnail from './Thumbnail'; import Spinner from './Spinner'; import SubmitButton from './buttons/FormSubmitButton'; import Tabs from './ui/Tabs/Tabs'; @@ -14,7 +13,6 @@ import ModalHeader from './ModalHeader'; const WootUIKit = { Modal, - Thumbnail, Spinner, SubmitButton, Tabs, diff --git a/app/javascript/dashboard/components/layout/Sidebar.vue b/app/javascript/dashboard/components/layout/Sidebar.vue index da9161334..82455d067 100644 --- a/app/javascript/dashboard/components/layout/Sidebar.vue +++ b/app/javascript/dashboard/components/layout/Sidebar.vue @@ -39,7 +39,10 @@
- +

{{ currentUser.name }} @@ -67,6 +70,7 @@ import Auth from '../../api/auth'; import SidebarItem from './SidebarItem'; import WootStatusBar from '../widgets/StatusBar'; import { frontendURL } from '../../helper/URLHelper'; +import Thumbnail from '../widgets/Thumbnail'; export default { mixins: [clickaway, adminMixin], @@ -144,7 +148,7 @@ export default { }, gravatarUrl() { const hash = md5(this.currentUser.email); - return `${window.WootConstants.GRAVATAR_URL}${hash}?d=monsterid`; + return `${window.WootConstants.GRAVATAR_URL}${hash}?default=404`; }, showOptions() { this.showOptionsMenu = !this.showOptionsMenu; @@ -154,6 +158,7 @@ export default { components: { SidebarItem, WootStatusBar, + Thumbnail, }, }; diff --git a/app/javascript/dashboard/routes/dashboard/settings/agents/Index.vue b/app/javascript/dashboard/routes/dashboard/settings/agents/Index.vue index c98010069..a4b9aaf57 100644 --- a/app/javascript/dashboard/routes/dashboard/settings/agents/Index.vue +++ b/app/javascript/dashboard/routes/dashboard/settings/agents/Index.vue @@ -23,8 +23,14 @@ + - + @@ -105,6 +111,7 @@ import { mapGetters } from 'vuex'; import md5 from 'md5'; +import Thumbnail from '../../../../components/widgets/Thumbnail'; import AddAgent from './AddAgent'; import EditAgent from './EditAgent'; @@ -115,6 +122,7 @@ export default { AddAgent, EditAgent, DeleteAgent, + Thumbnail, }, data() { return { @@ -166,7 +174,7 @@ export default { // Gravatar URL gravatarUrl(email) { const hash = md5(email); - return `${window.WootConstants.GRAVATAR_URL}${hash}?d=monsterid`; + return `${window.WootConstants.GRAVATAR_URL}${hash}?default=404`; }, // Edit Function openAddPopup() {