Global toolbar

This commit is contained in:
space-nuko
2023-04-28 17:06:41 -07:00
parent 0ff857bd5b
commit 7835b3e6d6
3 changed files with 56 additions and 24 deletions

View File

@@ -24,33 +24,10 @@
$: if (!app)
app = $uiState.app
function queuePrompt() {
app.queuePrompt(0, 1);
showNotification();
}
let notification;
const showNotification = () => {
if (!notification) {
notification = f7.notification.create({
title: 'Queued',
titleRightText: 'now',
// subtitle: 'Notification with close on click',
text: 'Prompt was queued',
closeOnClick: true,
closeTimeout: 3000,
});
}
// Open it
notification.open();
}
</script>
<Page name="subworkflow">
<Navbar title="Workflow {subworkflowID}" backLink="Back" />
<Toolbar bottom>
<Link on:click={queuePrompt}>Queue Prompt</Link>
</Toolbar>
{#each Object.entries($widgetState) as [id, ws]}
{@const node = app.lGraph.getNodeById(id)}