diff --git a/app/src/scss/main.scss b/app/src/scss/main.scss index dbf1163c..4e898462 100644 --- a/app/src/scss/main.scss +++ b/app/src/scss/main.scss @@ -112,6 +112,11 @@ body { top: 2px; } +// limit the size of toggle dropdown buttons to a square +.dropdown-toggle-split { + max-width: 2.5rem; +} + // Fork-awesome overrides .fa-fw { width: 1.25em !important; diff --git a/app/src/store/data.js b/app/src/store/data.js index 0dc940d0..df2255f4 100644 --- a/app/src/store/data.js +++ b/app/src/store/data.js @@ -146,6 +146,16 @@ export default { return api.fetch('DELETE', param ? `${uri}/${param}` : uri, data, humanKey, options).then(() => { commit('DEL_' + storeKey.toUpperCase(), [param, extraParams].filter(item => !isEmptyValue(item))) }) + }, + + 'RESET_CACHE_DATA' ({ state }, keys = Object.keys(state)) { + for (const key of keys) { + if (key === 'users_details') { + state[key] = {} + } else { + state[key] = undefined + } + } } }, diff --git a/app/src/views/user/UserImport.vue b/app/src/views/user/UserImport.vue index dea12af0..609f2e27 100644 --- a/app/src/views/user/UserImport.vue +++ b/app/src/views/user/UserImport.vue @@ -1,47 +1,30 @@ diff --git a/app/src/views/user/UserList.vue b/app/src/views/user/UserList.vue index 77af2cbd..0f1b883d 100644 --- a/app/src/views/user/UserList.vue +++ b/app/src/views/user/UserList.vue @@ -8,34 +8,25 @@ >