mirror of https://github.com/apache/cloudstack.git
Remove unused gravatar fetch (#5806)
This commit is contained in:
parent
9b0a1418ec
commit
12d95a2027
|
|
@ -17,7 +17,6 @@
|
|||
|
||||
import Cookies from 'js-cookie'
|
||||
import Vue from 'vue'
|
||||
import md5 from 'md5'
|
||||
import message from 'ant-design-vue/es/message'
|
||||
import notification from 'ant-design-vue/es/notification'
|
||||
import router from '@/router'
|
||||
|
|
@ -198,11 +197,6 @@ const user = {
|
|||
const result = response.listusersresponse.user[0]
|
||||
commit('SET_INFO', result)
|
||||
commit('SET_NAME', result.firstname + ' ' + result.lastname)
|
||||
if ('email' in result) {
|
||||
commit('SET_AVATAR', 'https://www.gravatar.com/avatar/' + md5(result.email))
|
||||
} else {
|
||||
commit('SET_AVATAR', 'https://www.gravatar.com/avatar/' + md5('dev@cloudstack.apache.org'))
|
||||
}
|
||||
resolve(cachedApis)
|
||||
}).catch(error => {
|
||||
reject(error)
|
||||
|
|
@ -242,11 +236,6 @@ const user = {
|
|||
const result = response.listusersresponse.user[0]
|
||||
commit('SET_INFO', result)
|
||||
commit('SET_NAME', result.firstname + ' ' + result.lastname)
|
||||
if ('email' in result) {
|
||||
commit('SET_AVATAR', 'https://www.gravatar.com/avatar/' + md5(result.email))
|
||||
} else {
|
||||
commit('SET_AVATAR', 'https://www.gravatar.com/avatar/' + md5('dev@cloudstack.apache.org'))
|
||||
}
|
||||
}).catch(error => {
|
||||
reject(error)
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in New Issue