aboutsummaryrefslogtreecommitdiff
path: root/modern/src/common/util/useFeatures.js
diff options
context:
space:
mode:
Diffstat (limited to 'modern/src/common/util/useFeatures.js')
-rw-r--r--modern/src/common/util/useFeatures.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/modern/src/common/util/useFeatures.js b/modern/src/common/util/useFeatures.js
index cafb2c7c..30361589 100644
--- a/modern/src/common/util/useFeatures.js
+++ b/modern/src/common/util/useFeatures.js
@@ -18,6 +18,7 @@ const featureSelector = createSelector(
(state) => state.session.server,
(state) => state.session.user,
(server, user) => {
+ const disableSavedCommands = get(server, user, 'ui.disableSavedCommands');
const disableAttributes = get(server, user, 'ui.disableAttributes');
const disableVehicleFeatures = get(server, user, 'ui.disableVehicleFeatures');
const disableDrivers = disableVehicleFeatures || get(server, user, 'ui.disableDrivers');
@@ -28,6 +29,7 @@ const featureSelector = createSelector(
const disableCalendars = get(server, user, 'ui.disableCalendars');
return {
+ disableSavedCommands,
disableAttributes,
disableDrivers,
disableMaintenance,