mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
change primary id that have delete, uninstall
This commit is contained in:
parent
babb4f1028
commit
6d3c617c28
5 changed files with 11 additions and 11 deletions
|
@ -203,7 +203,7 @@ define(['dialogHelper', 'connectionManager', 'loading', 'dom', 'layoutManager',
|
||||||
|
|
||||||
text: globalize.translate('ConfirmDeleteImage'),
|
text: globalize.translate('ConfirmDeleteImage'),
|
||||||
confirmText: globalize.translate('Delete'),
|
confirmText: globalize.translate('Delete'),
|
||||||
primary: 'cancel'
|
primary: 'ok'
|
||||||
|
|
||||||
}).then(afterConfirm);
|
}).then(afterConfirm);
|
||||||
});
|
});
|
||||||
|
@ -471,7 +471,7 @@ define(['dialogHelper', 'connectionManager', 'loading', 'dom', 'layoutManager',
|
||||||
|
|
||||||
initEditor(dlg, options);
|
initEditor(dlg, options);
|
||||||
|
|
||||||
// Has to be assigned a z-index after the call to .open()
|
// Has to be assigned a z-index after the call to .open()
|
||||||
dlg.addEventListener('close', function () {
|
dlg.addEventListener('close', function () {
|
||||||
|
|
||||||
if (layoutManager.tv) {
|
if (layoutManager.tv) {
|
||||||
|
@ -510,4 +510,4 @@ define(['dialogHelper', 'connectionManager', 'loading', 'dom', 'layoutManager',
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
|
@ -59,7 +59,7 @@ define(["loading", "dialogHelper", "dom", "components/libraryoptionseditor/libra
|
||||||
title: Globalize.translate("HeaderRemoveMediaLocation"),
|
title: Globalize.translate("HeaderRemoveMediaLocation"),
|
||||||
text: Globalize.translate("MessageConfirmRemoveMediaLocation"),
|
text: Globalize.translate("MessageConfirmRemoveMediaLocation"),
|
||||||
confirmText: Globalize.translate("ButtonDelete"),
|
confirmText: Globalize.translate("ButtonDelete"),
|
||||||
primary: "cancel"
|
primary: "ok"
|
||||||
}).then(function() {
|
}).then(function() {
|
||||||
var refreshAfterChange = currentOptions.refresh;
|
var refreshAfterChange = currentOptions.refresh;
|
||||||
ApiClient.removeMediaPath(virtualFolder.Name, location, refreshAfterChange).then(function() {
|
ApiClient.removeMediaPath(virtualFolder.Name, location, refreshAfterChange).then(function() {
|
||||||
|
@ -212,4 +212,4 @@ define(["loading", "dialogHelper", "dom", "components/libraryoptionseditor/libra
|
||||||
var isCreating = false;
|
var isCreating = false;
|
||||||
|
|
||||||
return editor;
|
return editor;
|
||||||
});
|
});
|
||||||
|
|
|
@ -74,7 +74,7 @@ define(['dialogHelper', 'require', 'layoutManager', 'globalize', 'userSettings',
|
||||||
title: globalize.translate('ConfirmDeletion'),
|
title: globalize.translate('ConfirmDeletion'),
|
||||||
text: msg,
|
text: msg,
|
||||||
confirmText: globalize.translate('Delete'),
|
confirmText: globalize.translate('Delete'),
|
||||||
primary: 'cancel'
|
primary: 'ok'
|
||||||
|
|
||||||
}).then(function () {
|
}).then(function () {
|
||||||
|
|
||||||
|
@ -523,4 +523,4 @@ define(['dialogHelper', 'require', 'layoutManager', 'globalize', 'userSettings',
|
||||||
return {
|
return {
|
||||||
show: showEditor
|
show: showEditor
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
|
@ -7,7 +7,7 @@ define(["loading", "libraryMenu", "dom", "globalize", "cardStyle", "emby-button"
|
||||||
confirm({
|
confirm({
|
||||||
title: globalize.translate("UninstallPluginHeader"),
|
title: globalize.translate("UninstallPluginHeader"),
|
||||||
text: msg,
|
text: msg,
|
||||||
primary: "cancel",
|
primary: "ok",
|
||||||
confirmText: globalize.translate("UninstallPluginHeader")
|
confirmText: globalize.translate("UninstallPluginHeader")
|
||||||
}).then(function() {
|
}).then(function() {
|
||||||
loading.show();
|
loading.show();
|
||||||
|
|
|
@ -9,7 +9,7 @@ define(["loading", "dom", "globalize", "humanedate", "paper-icon-button-light",
|
||||||
title: globalize.translate("DeleteUser"),
|
title: globalize.translate("DeleteUser"),
|
||||||
text: msg,
|
text: msg,
|
||||||
confirmText: globalize.translate("ButtonDelete"),
|
confirmText: globalize.translate("ButtonDelete"),
|
||||||
primary: "cancel"
|
primary: "ok"
|
||||||
}).then(function () {
|
}).then(function () {
|
||||||
loading.show();
|
loading.show();
|
||||||
ApiClient.deleteUser(id).then(function () {
|
ApiClient.deleteUser(id).then(function () {
|
||||||
|
@ -207,7 +207,7 @@ define(["loading", "dom", "globalize", "humanedate", "paper-icon-button-light",
|
||||||
|
|
||||||
page.querySelector(".pending").innerHTML = users.map(getPendingUserHtml).join("");
|
page.querySelector(".pending").innerHTML = users.map(getPendingUserHtml).join("");
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO cvium: maybe reuse for invitation system
|
// TODO cvium: maybe reuse for invitation system
|
||||||
function cancelAuthorization(page, id) {
|
function cancelAuthorization(page, id) {
|
||||||
loading.show();
|
loading.show();
|
||||||
|
@ -230,7 +230,7 @@ define(["loading", "dom", "globalize", "humanedate", "paper-icon-button-light",
|
||||||
// TODO cvium
|
// TODO cvium
|
||||||
renderPendingGuests(page, []);
|
renderPendingGuests(page, []);
|
||||||
// ApiClient.getJSON(ApiClient.getUrl("Connect/Pending")).then(function (pending) {
|
// ApiClient.getJSON(ApiClient.getUrl("Connect/Pending")).then(function (pending) {
|
||||||
//
|
//
|
||||||
// });
|
// });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue