File tree Expand file tree Collapse file tree
frontend/src/lib/components/mods-list Expand file tree Collapse file tree Original file line number Diff line number Diff line change 185185 <div class =" flex flex-col h-full items-center justify-center" >
186186 {#if mods .length !== 0 }
187187 {#if $filter != filterOptions [0 ]}
188- <p class =" text-xl text-center text-surface-400-700-token" ><T defaultValue =" No mods matching your filters" keyName =" mods-list.no-mods-filtered" /></p >
189- <button
190- class =" btn variant-filled-primary mt-4"
191- on:click ={() => {
192- $filter = filterOptions [0 ];
193- }}
194- >
195- <T defaultValue =" Show all" keyName =" mods-list.show-all" />
196- </button >
188+ {#if $search != ' ' }
189+ <p class =" text-xl text-center text-surface-400-700-token" ><T defaultValue =" No mods matching your filters" keyName =" mods-list.no-mods-filtered" /></p >
190+ <button
191+ class =" btn variant-filled-primary mt-4"
192+ on:click ={() => {
193+ $filter = filterOptions [0 ];
194+ }}
195+ >
196+ <T defaultValue =" Remove filters" keyName =" mods-list.test1" />
197+ </button >
198+ <button
199+ class =" btn variant-filled-primary mt-4"
200+ on:click ={() => {
201+ $search = ' ' ;
202+ }}
203+ >
204+ <T defaultValue =" Remove search text" keyName =" mods-list.test2" />
205+ </button >
206+ {:else }
207+ <p class =" text-xl text-center text-surface-400-700-token" ><T defaultValue =" No mods matching your filters" keyName =" mods-list.no-mods-filtered" /></p >
208+ <button
209+ class =" btn variant-filled-primary mt-4"
210+ on:click ={() => {
211+ $filter = filterOptions [0 ];
212+ }}
213+ >
214+ <T defaultValue =" Show all" keyName =" mods-list.test3" />
215+ </button >
216+ {/if }
197217 {:else }
198218 <p class =" text-xl text-center text-surface-400-700-token" ><T defaultValue =" No mods matching your search" keyName =" mods-list.no-mods-filtered" /></p >
199219 <button
203223 $filter = filterOptions [0 ];
204224 }}
205225 >
206- <T defaultValue =" Show all" keyName =" mods-list.show-all " />
226+ <T defaultValue =" Show all" keyName =" mods-list.test4 " />
207227 </button >
208228 {/if }
209229 {:else }
You can’t perform that action at this time.
0 commit comments