Files
jellyfin-web/src/components/alert.js
T
nielsvanvelzen af10633a7d Backport pull request #7259 from jellyfin-web/release-10.11.z
Avoid native browser alerts

Original-merge: 907947c523079451aa09712059de0a60f91516df

Merged-by: thornbill <thornbill@users.noreply.github.com>

Backported-by: Joshua M. Boniface <joshua@boniface.me>
2025-11-02 21:59:38 -05:00

20 lines
467 B
JavaScript

import { appRouter } from './router/appRouter';
import dialog from './dialog/dialog';
import globalize from '../lib/globalize';
export default async function (text, title) {
const options = typeof text === 'string' ? { title, text } : text;
await appRouter.ready();
options.buttons = [
{
name: globalize.translate('ButtonGotIt'),
id: 'ok',
type: 'submit'
}
];
return dialog.show(options);
}