Skip to content

Commit

Permalink
fix(appearance): color scheme updates in production build #469
Browse files Browse the repository at this point in the history
  • Loading branch information
polonel committed Feb 26, 2022
1 parent 6d03354 commit 881a919
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/client/api/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,11 @@ api.settings.deleteRole = ({ _id, newRoleId }) => {
return res.data
})
}
api.settings.buildSass = () => {
return axios.get(`/api/v1/settings/buildsass`).then(res => {
return res.data
})
}

api.common = {}
api.common.fetchRoles = () => {
Expand Down
1 change: 1 addition & 0 deletions src/client/sagas/settings/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ function * updateColorScheme ({ payload }) {
try {
const response = yield call(api.settings.update, payload)
yield put({ type: UPDATE_COLORSCHEME.SUCCESS, response })
yield call(api.settings.buildSass)
helpers.UI.showSnackbar('Setting saved successfully. Reloading...', false)
setTimeout(function () {
window.location.reload()
Expand Down
1 change: 0 additions & 1 deletion src/helpers/viewdata/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ var async = require('async')
var _ = require('lodash')
var winston = require('winston')
var moment = require('moment')
var permissions = require('../../permissions')
var settingSchema = require('../../models/setting')

var viewController = {}
Expand Down

0 comments on commit 881a919

Please sign in to comment.