Skip to content

Commit 23bc694

Browse files
committed
add refresh button to popup header
1 parent e5ddc4b commit 23bc694

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

src/popup/App.svelte

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import iconOpen from "../shared/img/icon-open.svg";
99
import iconUpdate from "../shared/img/icon-update.svg";
1010
import iconClear from "../shared/img/icon-clear.svg";
11+
import iconRefresh from "../shared/img/icon-refresh.svg";
1112
1213
let error = undefined;
1314
let active = true;
@@ -171,6 +172,10 @@
171172
margin: 0 auto 0 1rem;
172173
}
173174
175+
.header :global(button:nth-of-type(3)) {
176+
margin-right: 1rem;
177+
}
178+
174179
.header :global(button:nth-of-type(1) svg) {
175180
width: 75%;
176181
}
@@ -253,6 +258,12 @@
253258
title={"Show updates"}
254259
{disabled}
255260
/>
261+
<IconButton
262+
icon={iconRefresh}
263+
on:click={() => window.location.reload()}
264+
title={"Refresh view"}
265+
{disabled}
266+
/>
256267
<IconButton
257268
on:click={toggleExtension}
258269
icon={iconPower}

src/shared/img/icon-refresh.svg

Lines changed: 1 addition & 1 deletion
Loading

0 commit comments

Comments
 (0)