Skip to content

Commit 89c335f

Browse files
ui fixes
1 parent cee2af6 commit 89c335f

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

ui/src/store/modules/user.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ import {
4141
DOMAIN_STORE,
4242
DARK_MODE,
4343
CUSTOM_COLUMNS,
44+
MS_ID,
4445
OAUTH_DOMAIN,
4546
OAUTH_PROVIDER,
4647
LATEST_CS_VERSION
@@ -151,6 +152,7 @@ const user = {
151152
},
152153
SET_MS_ID: (state, msId) => {
153154
state.msId = msId
155+
vueProps.$localStorage.set(MS_ID, msId)
154156
},
155157
SET_MAINTENANCE_INITIATED: (state, maintenanceInitiated) => {
156158
state.maintenanceInitiated = maintenanceInitiated
@@ -311,6 +313,7 @@ const user = {
311313
const domainStore = vueProps.$localStorage.get(DOMAIN_STORE, {})
312314
const cachedShowSecurityGroups = vueProps.$localStorage.get(SHOW_SECURTIY_GROUPS, false)
313315
const darkMode = vueProps.$localStorage.get(DARK_MODE, false)
316+
const msId = vueProps.$localStorage.get(MS_ID, false)
314317
const latestVersion = vueProps.$localStorage.get(LATEST_CS_VERSION, { version: '', fetchedTs: 0 })
315318
const hasAuth = Object.keys(cachedApis).length > 0
316319

@@ -325,6 +328,7 @@ const user = {
325328
commit('SET_TIMEZONE_OFFSET', cachedTimezoneOffset)
326329
commit('SET_USE_BROWSER_TIMEZONE', cachedUseBrowserTimezone)
327330
commit('SET_CUSTOM_COLUMNS', cachedCustomColumns)
331+
commit('SET_MS_ID', msId)
328332

329333
// Ensuring we get the user info so that store.getters.user is never empty when the page is freshly loaded
330334
api('listUsers', { username: Cookies.get('username'), listall: true }).then(response => {

ui/src/store/mutation-types.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ export const LATEST_CS_VERSION = 'LATEST_CS_VERSION'
4040
export const VUE_VERSION = 'VUE_VERSION'
4141
export const CUSTOM_COLUMNS = 'CUSTOM_COLUMNS'
4242
export const RELOAD_ALL_PROJECTS = 'RELOAD_ALL_PROJECTS'
43+
export const MS_ID = 'MS_ID'
4344
export const OAUTH_DOMAIN = 'OAUTH_DOMAIN'
4445
export const OAUTH_PROVIDER = 'OAUTH_PROVIDER'
4546

ui/src/views/infra/Confirmation.vue

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,6 @@
2424
:rules="rules"
2525
@finish="handleSubmit"
2626
>
27-
<a-alert type="error">
28-
<template #message>
29-
<span v-html="$t(action.currentAction.message)" />
30-
</template>
31-
</a-alert>
3227
<a-form-item
3328
ref="algorithm"
3429
name="algorithm"
@@ -37,6 +32,7 @@
3732
<tooltip-label :title="$t('label.algorithm')" :tooltip="prepareForMaintenanceApiParams.algorithm.description"/>
3833
</template>
3934
<a-select
35+
style="width: 500px"
4036
showSearch
4137
optionFilterProp="value"
4238
:filterOption="(input, option) => {
@@ -49,6 +45,12 @@
4945
</a-select-option>
5046
</a-select>
5147
</a-form-item>
48+
<a-divider/>
49+
<a-alert type="error">
50+
<template #message>
51+
<span v-html="$t(action.currentAction.message)" />
52+
</template>
53+
</a-alert>
5254
<a-alert type="warning" style="margin-top: 10px">
5355
<template #message>
5456
<span>{{ $t('message.confirm.type') }} "{{ action.currentAction.confirmationText }}"</span>

0 commit comments

Comments
 (0)