File tree Expand file tree Collapse file tree
app/components/Viewer/ObjectTree/Base Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -99,22 +99,13 @@ watch(
9999 </v-list >
100100 </v-menu >
101101 <ActionButton
102- v-if = " ! isCollapsed "
103- tooltip="Collapse All"
104- icon="mdi-collapse-all-outline"
102+ data-testid="CollapseOrExpandAll "
103+ : tooltip =" isCollapsed ? ' Expand All ' : ' Collapse All' "
104+ : icon =" isCollapsed ? ' mdi-expand-all-outline ' : ' mdi- collapse-all-outline' "
105105 variant="text"
106106 color="black"
107107 tooltipLocation="bottom"
108- @click =" emit (' collapse-all' )"
109- />
110- <ActionButton
111- v-else
112- tooltip="Expand All"
113- icon="mdi-expand-all-outline"
114- variant="text"
115- color="black"
116- tooltipLocation="bottom"
117- @click =" emit (' expand-all' )"
108+ @click =" isCollapsed ? emit (' expand-all' ) : emit (' collapse-all' )"
118109 />
119110 </div >
120111 </div >
You can’t perform that action at this time.
0 commit comments