mirror of
https://github.com/jumpserver/lina.git
synced 2025-10-21 07:29:02 +00:00
Merge branch 'dev' of github.com:jumpserver/lina into dev
This commit is contained in:
@@ -34,18 +34,11 @@ export default {
|
|||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
...mapGetters([
|
...mapGetters([
|
||||||
'customSettings',
|
|
||||||
'publicSettings'
|
'publicSettings'
|
||||||
]),
|
]),
|
||||||
// eslint-disable-next-line vue/return-in-computed-property
|
// eslint-disable-next-line vue/return-in-computed-property
|
||||||
logoSrc() {
|
logoSrc() {
|
||||||
if (this.publicSettings.XPACK_LICENSE_IS_VALID) {
|
return this.publicSettings.LOGO_URLS.logo_index
|
||||||
if (this.customSettings && this.customSettings.logo_index && this.customSettings.logo_index !== '/static/img/logo_text.png') {
|
|
||||||
console.log(this.customSettings.logo_index)
|
|
||||||
return this.customSettings.logo_index
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return this.logoText
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
@@ -10,7 +10,6 @@ const getters = {
|
|||||||
visitedViews: state => state.tagsView.visitedViews,
|
visitedViews: state => state.tagsView.visitedViews,
|
||||||
cachedViews: state => state.tagsView.cachedViews,
|
cachedViews: state => state.tagsView.cachedViews,
|
||||||
publicSettings: state => state.settings.publicSettings,
|
publicSettings: state => state.settings.publicSettings,
|
||||||
customSettings: state => state.settings.customSettings,
|
|
||||||
currentOrgRoles: state => state.users.roles,
|
currentOrgRoles: state => state.users.roles,
|
||||||
currentOrgPerms: state => state.users.perms,
|
currentOrgPerms: state => state.users.perms,
|
||||||
MFAVerifyAt: state => state.users.MFAVerifyAt
|
MFAVerifyAt: state => state.users.MFAVerifyAt
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
import defaultSettings from '@/settings'
|
import defaultSettings from '@/settings'
|
||||||
import { getPublicSettings, getLogo } from '@/api/settings'
|
import { getPublicSettings } from '@/api/settings'
|
||||||
|
|
||||||
const { showSettings, fixedHeader, sidebarLogo, tagsView } = defaultSettings
|
const { showSettings, fixedHeader, sidebarLogo, tagsView } = defaultSettings
|
||||||
|
|
||||||
@@ -8,8 +8,7 @@ const state = {
|
|||||||
fixedHeader: fixedHeader,
|
fixedHeader: fixedHeader,
|
||||||
sidebarLogo: sidebarLogo,
|
sidebarLogo: sidebarLogo,
|
||||||
tagsView: tagsView,
|
tagsView: tagsView,
|
||||||
publicSettings: null,
|
publicSettings: null
|
||||||
customSettings: null
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const mutations = {
|
const mutations = {
|
||||||
@@ -20,9 +19,6 @@ const mutations = {
|
|||||||
},
|
},
|
||||||
SET_PUBLIC_SETTINGS: (state, settings) => {
|
SET_PUBLIC_SETTINGS: (state, settings) => {
|
||||||
state.publicSettings = settings
|
state.publicSettings = settings
|
||||||
},
|
|
||||||
SET_CUSTOM_SETTINGS: (state, settings) => {
|
|
||||||
state.customSettings = settings
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -35,13 +31,6 @@ const actions = {
|
|||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
getPublicSettings().then(response => {
|
getPublicSettings().then(response => {
|
||||||
commit('SET_PUBLIC_SETTINGS', response.data)
|
commit('SET_PUBLIC_SETTINGS', response.data)
|
||||||
if (response.data.XPACK_ENABLED) {
|
|
||||||
if (response.data.XPACK_LICENSE_IS_VALID) {
|
|
||||||
getLogo().then((res) => {
|
|
||||||
commit('SET_CUSTOM_SETTINGS', res)
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
resolve(response)
|
resolve(response)
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
reject(error)
|
reject(error)
|
||||||
|
@@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
<script type="text/jsx">
|
<script type="text/jsx">
|
||||||
import ListTable from '@/components/ListTable'
|
import ListTable from '@/components/ListTable'
|
||||||
|
import { DetailFormatter } from '@/components/ListTable/formatters'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'TaskHistory',
|
name: 'TaskHistory',
|
||||||
@@ -67,7 +68,11 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
adhoc_short_id: {
|
adhoc_short_id: {
|
||||||
label: this.$t('ops.version')
|
label: this.$t('ops.version'),
|
||||||
|
formatter: DetailFormatter,
|
||||||
|
formatterArgs: {
|
||||||
|
route: 'HistoryExecutionDetail'
|
||||||
|
}
|
||||||
},
|
},
|
||||||
actions: {
|
actions: {
|
||||||
prop: 'id',
|
prop: 'id',
|
||||||
|
Reference in New Issue
Block a user