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
|
@ -101,7 +101,8 @@
|
||||||
"src/scripts/settings/webSettings.js",
|
"src/scripts/settings/webSettings.js",
|
||||||
"src/scripts/dfnshelper.js",
|
"src/scripts/dfnshelper.js",
|
||||||
"src/scripts/imagehelper.js",
|
"src/scripts/imagehelper.js",
|
||||||
"src/scripts/inputManager.js"
|
"src/scripts/inputManager.js",
|
||||||
|
"src/components/deleteHelper.js"
|
||||||
],
|
],
|
||||||
"plugins": [
|
"plugins": [
|
||||||
"@babel/plugin-transform-modules-amd"
|
"@babel/plugin-transform-modules-amd"
|
||||||
|
|
|
@ -1,5 +1,9 @@
|
||||||
define(['connectionManager', 'confirm', 'appRouter', 'globalize'], function (connectionManager, confirm, appRouter, globalize) {
|
// define(['connectionManager', 'confirm', 'appRouter', 'globalize'], function (connectionManager, confirm, appRouter, globalize) {
|
||||||
'use strict';
|
import connectionManager from 'connectionManager';
|
||||||
|
import confirm from 'confirm';
|
||||||
|
import appRouter from 'appRouter';
|
||||||
|
import globalize from 'globalize';
|
||||||
|
// 'use strict';
|
||||||
|
|
||||||
function alertText(options) {
|
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 item = options.item;
|
||||||
var itemId = item.Id;
|
var itemId = item.Id;
|
||||||
|
@ -51,7 +55,12 @@ define(['connectionManager', 'confirm', 'appRouter', 'globalize'], function (con
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
export default {
|
||||||
deleteItem: deleteItem
|
deleteItem: deleteItem
|
||||||
};
|
};
|
||||||
});
|
|
||||||
|
|
||||||
|
// return {
|
||||||
|
// deleteItem: deleteItem
|
||||||
|
// };
|
||||||
|
// });
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue