]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commitdiff
refactor(ui-web): temporarily disable refresh button in modern skin
authorJérôme Benoit <jerome.benoit@sap.com>
Wed, 29 Apr 2026 23:23:50 +0000 (01:23 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Wed, 29 Apr 2026 23:23:50 +0000 (01:23 +0200)
ui/web/src/skins/modern/components/SimulatorBar.vue
ui/web/tests/unit/skins/modern/SimulatorBar.test.ts

index de912257627f4976946cffc655ec79e4c9f2b533..336ff83450ac1364e682234012399e17fd0de4a9 100644 (file)
       </select>
     </div>
     <div class="modern-bar__group">
-      <ActionButton
+      <!-- <ActionButton
         variant="ghost"
         :pending="refreshPending"
         title="Refresh charging stations"
         @click="$emit('refresh')"
       >
         Refresh
-      </ActionButton>
+      </ActionButton> -->
       <ActionButton
         variant="primary"
         @click="$emit('add')"
index 8a2baebd67612c03060b5ceef3c286e127ed22ed..7619eaf23fd5665af4ca71b650cb429561972bc3 100644 (file)
@@ -74,12 +74,12 @@ describe('SimulatorBar', () => {
     expect(wrapper.emitted('switch-server')).toEqual([[1]])
   })
 
-  it('should emit refresh when refresh button is clicked', async () => {
-    const wrapper = mountBar()
-    const [refreshBtn] = wrapper.findAll('.modern-btn')
-    await refreshBtn.trigger('click')
-    expect(wrapper.emitted('refresh')).toHaveLength(1)
-  })
+  // it('should emit refresh when refresh button is clicked', async () => {
+  //   const wrapper = mountBar()
+  //   const [refreshBtn] = wrapper.findAll('.modern-btn')
+  //   await refreshBtn.trigger('click')
+  //   expect(wrapper.emitted('refresh')).toHaveLength(1)
+  // })
 
   it('should emit add when add-stations button is clicked', async () => {
     const wrapper = mountBar()