Skip to content

Commit

Permalink
fix: add device password
Browse files Browse the repository at this point in the history
  • Loading branch information
mrjackwills committed Oct 17, 2023
1 parent 5c43da1 commit b95f134
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/Devices/AddDevice.vue
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,10 @@ const addNewDevice = async (): Promise<void> => {
if (deviceStore.numberOfDevices === userStore.maxDevices) return;
localLoading.value = true;
loading.value = true;
if (deviceSettings.value.device_password === '') {
deviceSettings.value.device_password = undefined;
deviceSettings.value.client_password = undefined;
}
const response = await axios_device.deviceAdd_post(deviceSettings.value);
if (response) snackSuccess({ message: `New device added: ${response}` });
emit('refresh');
Expand Down

0 comments on commit b95f134

Please sign in to comment.