Bladeren bron

calendar: clear res editing state on selection change

ZiB 4 maanden geleden
bovenliggende
commit
8c61d67a69
1 gewijzigde bestanden met toevoegingen van 6 en 0 verwijderingen
  1. 6 0
      room_cal/vue/calendar.html

+ 6 - 0
room_cal/vue/calendar.html

@@ -1687,6 +1687,12 @@ createApp({
     }
     }
 
 
     watch(selection, (sel) => {
     watch(selection, (sel) => {
+      editingDoorCode.value = null;
+      editingWifiKey.value  = null;
+      editingWifiSsid.value = null;
+      resDoorState.value    = null;
+      resKeyState.value     = null;
+      resSsidState.value    = null;
       if (sel?.type === 'res' && sel.chat_id && selectionSupportsChat.value) {
       if (sel?.type === 'res' && sel.chat_id && selectionSupportsChat.value) {
         chatThread.value    = null;
         chatThread.value    = null;
         chatError.value     = null;
         chatError.value     = null;