default all tools to allowed with permission
This commit is contained in:
parent
ce24a200f5
commit
0510ab3fcd
1 changed files with 2 additions and 3 deletions
|
|
@ -88,9 +88,8 @@ export const uiSlice = createSlice({
|
|||
state.useTools = !state.useTools;
|
||||
},
|
||||
addTool: (state, action: PayloadAction<Tool>) => {
|
||||
state.toolSettings[action.payload.function.name] = action.payload.readonly
|
||||
? "allowedWithoutPermission"
|
||||
: "allowedWithPermission";
|
||||
state.toolSettings[action.payload.function.name] =
|
||||
"allowedWithPermission";
|
||||
},
|
||||
toggleToolSetting: (state, action: PayloadAction<string>) => {
|
||||
const setting = state.toolSettings[action.payload];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue