|
1 | 1 | import { button, form, input, label, small, span } from '../../utils/dom.js'; |
2 | 2 | import { megaEdit } from '../../utils/mega_editor.js'; |
3 | | -import { createBlogSpan, modalCancelButton, modalCompleteButton, showErrorModal, showModal } from '../../utils/modals.js'; |
| 3 | +import { createBlogSpan, hideModal, modalCancelButton, modalCompleteButton, showErrorModal, showModal } from '../../utils/modals.js'; |
4 | 4 | import { addSidebarItem, removeSidebarItem } from '../../utils/sidebar.js'; |
5 | 5 | import { dateTimeFormat } from '../../utils/text_format.js'; |
6 | 6 | import { apiFetch } from '../../utils/tumblr_helpers.js'; |
@@ -131,7 +131,8 @@ const deleteDrafts = async function ({ blogName, before }) { |
131 | 131 | 'Refresh the page to see the result.', |
132 | 132 | ], |
133 | 133 | buttons: [ |
134 | | - button({ class: 'blue', click: () => location.reload() }, ['Refresh']), |
| 134 | + button({ click: hideModal }, ['Close']), |
| 135 | + button({ class: 'blue', click: () => location.reload() }, ['Refresh Now']), |
135 | 136 | ], |
136 | 137 | }); |
137 | 138 | }; |
@@ -225,7 +226,8 @@ const clearQueue = async function ({ blogName }) { |
225 | 226 | 'Refresh the page to see the result.', |
226 | 227 | ], |
227 | 228 | buttons: [ |
228 | | - button({ class: 'blue', click: () => location.reload() }, ['Refresh']), |
| 229 | + button({ click: hideModal }, ['Close']), |
| 230 | + button({ class: 'blue', click: () => location.reload() }, ['Refresh Now']), |
229 | 231 | ], |
230 | 232 | }); |
231 | 233 | }; |
|
0 commit comments