mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
solved imports for alert, toast and confirm
This commit is contained in:
parent
4b42afcd7a
commit
86a9f4e36f
49 changed files with 417 additions and 550 deletions
|
@ -29,6 +29,7 @@ import '../../elements/emby-select/emby-select';
|
|||
import itemShortcuts from '../../components/shortcuts';
|
||||
import Dashboard from '../../scripts/clientUtils';
|
||||
import ServerConnections from '../../components/ServerConnections';
|
||||
import confirm from '../../components/confirm/confirm';
|
||||
|
||||
function getPromise(apiClient, params) {
|
||||
const id = params.id;
|
||||
|
@ -1869,16 +1870,14 @@ export default function (view, params) {
|
|||
}
|
||||
|
||||
function splitVersions(instance, page, apiClient, params) {
|
||||
import('../../components/confirm/confirm').then(({ default: confirm }) => {
|
||||
confirm('Are you sure you wish to split the media sources into separate items?', 'Split Media Apart').then(function () {
|
||||
loading.show();
|
||||
apiClient.ajax({
|
||||
type: 'DELETE',
|
||||
url: apiClient.getUrl('Videos/' + params.id + '/AlternateSources')
|
||||
}).then(function () {
|
||||
loading.hide();
|
||||
reload(instance, page, params);
|
||||
});
|
||||
confirm('Are you sure you wish to split the media sources into separate items?', 'Split Media Apart').then(function () {
|
||||
loading.show();
|
||||
apiClient.ajax({
|
||||
type: 'DELETE',
|
||||
url: apiClient.getUrl('Videos/' + params.id + '/AlternateSources')
|
||||
}).then(function () {
|
||||
loading.hide();
|
||||
reload(instance, page, params);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue