Wizard: Update the way of adding NTP servers
This updates the way NTP servers can be added: - helper text was removed - add button (PlusCircle) was added to the input group utilities - remove input button is now rendered always, but gets disabled when there's no input - chip group was moved under the input Also I've noticed that the "clear input" button completely cleared the list of NTP servers which would make me very angry as a user. Fixed it, so now the clear input button only clears the input field and the `clearNtpServers` action was removed as we don't use it anywhere else.
This commit is contained in:
parent
b8915da3fd
commit
39f618c3d8
2 changed files with 36 additions and 36 deletions
|
|
@ -749,9 +749,6 @@ export const wizardSlice = createSlice({
|
|||
1
|
||||
);
|
||||
},
|
||||
clearNtpServers: (state) => {
|
||||
state.timezone.ntpservers = [];
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
|
|
@ -818,6 +815,5 @@ export const {
|
|||
changeTimezone,
|
||||
addNtpServer,
|
||||
removeNtpServer,
|
||||
clearNtpServers,
|
||||
} = wizardSlice.actions;
|
||||
export default wizardSlice.reducer;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue