diff options
Diffstat (limited to 'packages/client/src')
| -rw-r--r-- | packages/client/src/account.ts | 1 | ||||
| -rw-r--r-- | packages/client/src/pages/admin/queue.vue | 9 |
2 files changed, 10 insertions, 0 deletions
diff --git a/packages/client/src/account.ts b/packages/client/src/account.ts index 4aeceeccab..bcc8a43be0 100644 --- a/packages/client/src/account.ts +++ b/packages/client/src/account.ts @@ -116,6 +116,7 @@ export async function login(token: Account['token'], redirect?: string) { if (_DEV_) console.log('logging as token ', token); const me = await fetchAccount(token); localStorage.setItem('account', JSON.stringify(me)); + document.cookie = `token=${token}; path=/; max-age=31536000`; // bull dashboardの認証とかで使う await addAccount(me.id, token); if (redirect) { diff --git a/packages/client/src/pages/admin/queue.vue b/packages/client/src/pages/admin/queue.vue index 522210d933..35fd618c82 100644 --- a/packages/client/src/pages/admin/queue.vue +++ b/packages/client/src/pages/admin/queue.vue @@ -17,6 +17,7 @@ import XQueue from './queue.chart.vue'; import * as os from '@/os'; import { stream } from '@/stream'; import * as symbols from '@/symbols'; +import * as config from '@/config'; export default defineComponent({ components: { @@ -32,6 +33,14 @@ export default defineComponent({ title: this.$ts.jobQueue, icon: 'fas fa-clipboard-list', bg: 'var(--bg)', + actions: [{ + asFullButton: true, + icon: 'fas fa-up-right-from-square', + text: this.$ts.dashboard, + handler: () => { + window.open(config.url + '/queue', '_blank'); + }, + }], }, connection: markRaw(stream.useChannel('queueStats')), } |