mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
deletehelper migrated
This commit is contained in:
parent
e9151b6ee9
commit
4bcb7985d8
2 changed files with 16 additions and 6 deletions
|
@ -1,5 +1,9 @@
|
|||
define(['connectionManager', 'confirm', 'appRouter', 'globalize'], function (connectionManager, confirm, appRouter, globalize) {
|
||||
'use strict';
|
||||
// define(['connectionManager', 'confirm', 'appRouter', 'globalize'], function (connectionManager, confirm, appRouter, globalize) {
|
||||
import connectionManager from 'connectionManager';
|
||||
import confirm from 'confirm';
|
||||
import appRouter from 'appRouter';
|
||||
import globalize from 'globalize';
|
||||
// 'use strict';
|
||||
|
||||
function alertText(options) {
|
||||
|
||||
|
@ -11,7 +15,7 @@ define(['connectionManager', 'confirm', 'appRouter', 'globalize'], function (con
|
|||
});
|
||||
}
|
||||
|
||||
function deleteItem(options) {
|
||||
export function deleteItem(options) {
|
||||
|
||||
var item = options.item;
|
||||
var itemId = item.Id;
|
||||
|
@ -51,7 +55,12 @@ define(['connectionManager', 'confirm', 'appRouter', 'globalize'], function (con
|
|||
});
|
||||
}
|
||||
|
||||
return {
|
||||
export default {
|
||||
deleteItem: deleteItem
|
||||
};
|
||||
});
|
||||
|
||||
|
||||
// return {
|
||||
// deleteItem: deleteItem
|
||||
// };
|
||||
// });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue