Skip to content

Commit

Permalink
Rename importdocumenttype to importDocumentType and emptyrecyclebin t…
Browse files Browse the repository at this point in the history
…o emptyRecycleBin to match UI and mocks
  • Loading branch information
Jacob Overgaard authored and mikecp committed Oct 17, 2021
1 parent 14fe7d9 commit 8703d7c
Show file tree
Hide file tree
Showing 24 changed files with 58 additions and 55 deletions.
22 changes: 12 additions & 10 deletions src/Umbraco.Web.BackOffice/Trees/ContentTreeControllerBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ AppCaches appCaches
/// <param name="id"></param>
/// <param name="queryStrings"></param>
/// <returns></returns>
public ActionResult<TreeNode> GetTreeNode([FromRoute] string id, [ModelBinder(typeof(HttpQueryStringModelBinder))]FormCollection queryStrings)
public ActionResult<TreeNode> GetTreeNode([FromRoute] string id, [ModelBinder(typeof(HttpQueryStringModelBinder))] FormCollection queryStrings)
{
int asInt;
Guid asGuid = Guid.Empty;
Expand Down Expand Up @@ -325,7 +325,8 @@ private IEnumerable<IEntitySlim> GetChildrenFromEntityService(int entityId)
/// <returns></returns>
protected bool HasPathAccess(IUmbracoEntity entity, FormCollection queryStrings)
{
if (entity == null) return false;
if (entity == null)
return false;
return RecycleBinId == Constants.System.RecycleBinContent
? _backofficeSecurityAccessor.BackOfficeSecurity.CurrentUser.HasContentPathAccess(entity, _entityService, _appCaches)
: _backofficeSecurityAccessor.BackOfficeSecurity.CurrentUser.HasMediaPathAccess(entity, _entityService, _appCaches);
Expand Down Expand Up @@ -469,13 +470,13 @@ protected sealed override ActionResult<MenuItemCollection> GetMenuForNode(string
// only add empty recycle bin if the current user is allowed to delete by default
if (deleteAllowed)
{
menu.Items.Add(new MenuItem("emptyrecyclebin", LocalizedTextService)
{
Icon = "trash",
OpensDialog = true
});
menu.Items.Add(new RefreshNode(LocalizedTextService, true));
}
menu.Items.Add(new MenuItem("emptyRecycleBin", LocalizedTextService)
{
Icon = "trash",
OpensDialog = true
});
menu.Items.Add(new RefreshNode(LocalizedTextService, true));
}
return menu;
}

Expand Down Expand Up @@ -608,7 +609,8 @@ internal IEntitySlim GetEntityFromId(string id)
/// <returns></returns>
internal bool IgnoreUserStartNodes(FormCollection queryStrings)
{
if (_ignoreUserStartNodes.HasValue) return _ignoreUserStartNodes.Value;
if (_ignoreUserStartNodes.HasValue)
return _ignoreUserStartNodes.Value;

var dataTypeKey = queryStrings.GetValue<Guid?>(TreeQueryStringParameters.DataTypeKey);
_ignoreUserStartNodes = dataTypeKey.HasValue && _dataTypeService.IsDataTypeIgnoringUserStartNodes(dataTypeKey.Value);
Expand Down
5 changes: 3 additions & 2 deletions src/Umbraco.Web.BackOffice/Trees/ContentTypeTreeController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ protected override ActionResult<TreeNodeCollection> GetTreeNodes(string id, Form
}));

//if the request is for folders only then just return
if (queryStrings["foldersonly"].ToString().IsNullOrWhiteSpace() == false && queryStrings["foldersonly"] == "1") return nodes;
if (queryStrings["foldersonly"].ToString().IsNullOrWhiteSpace() == false && queryStrings["foldersonly"] == "1")
return nodes;

var children = _entityService.GetChildren(intId, UmbracoObjectTypes.DocumentType).ToArray();
var contentTypes = _contentTypeService.GetAll(children.Select(c => c.Id).ToArray()).ToDictionary(c => c.Id);
Expand Down Expand Up @@ -117,7 +118,7 @@ protected override ActionResult<MenuItemCollection> GetMenuForNode(string id, Fo

// root actions
menu.Items.Add<ActionNew>(LocalizedTextService, opensDialog: true);
menu.Items.Add(new MenuItem("importdocumenttype", LocalizedTextService)
menu.Items.Add(new MenuItem("importDocumentType", LocalizedTextService)
{
Icon = "page-up",
SeparatorBefore = true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ angular.module('umbraco.mocks').

{ separator: true, name: "Reload", cssclass: "refresh", alias: "users", metaData: {} },

{ separator: true, name: "Empty Recycle Bin", cssclass: "trash", alias: "emptyrecyclebin", metaData: {} }
{ separator: true, name: "Empty Recycle Bin", cssclass: "trash", alias: "emptyRecycleBin", metaData: {} }
];

var result = {
Expand Down
4 changes: 2 additions & 2 deletions src/Umbraco.Web.UI/umbraco/config/lang/cs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
<key alias="createGroup">Vytvořit skupinu</key>
<key alias="delete">Odstranit</key>
<key alias="disable">Deaktivovat</key>
<key alias="emptyrecyclebin">Vyprázdnit koš</key>
<key alias="emptyRecycleBin">Vyprázdnit koš</key>
<key alias="enable">Aktivovat</key>
<key alias="exportDocumentType">Exportovat typ dokumentu</key>
<key alias="importdocumenttype">Importovat typ dokumentu</key>
<key alias="importDocumentType">Importovat typ dokumentu</key>
<key alias="importPackage">Importovat balíček</key>
<key alias="liveEdit">Editovat na stránce</key>
<key alias="logout">Odhlásit</key>
Expand Down
4 changes: 2 additions & 2 deletions src/Umbraco.Web.UI/umbraco/config/lang/cy.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
<key alias="delete">Dileu</key>
<key alias="disable">Analluogi</key>
<key alias="editSettings">Golygu gosodiadau</key>
<key alias="emptyrecyclebin">Gwagu bin ailgylchu</key>
<key alias="emptyRecycleBin">Gwagu bin ailgylchu</key>
<key alias="enable">Galluogi</key>
<key alias="exportDocumentType">Allforio Math o Ddogfen</key>
<key alias="importdocumenttype">Mewnforio Math o Ddogfen</key>
<key alias="importDocumentType">Mewnforio Math o Ddogfen</key>
<key alias="importPackage">Mewnforio Pecyn</key>
<key alias="liveEdit">Golygu mewn Cynfas</key>
<key alias="logout">Gadael</key>
Expand Down
4 changes: 2 additions & 2 deletions src/Umbraco.Web.UI/umbraco/config/lang/da.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
<key alias="delete">Slet</key>
<key alias="disable">Deaktivér</key>
<key alias="editSettings">Edit settings</key>
<key alias="emptyrecyclebin">Tøm papirkurv</key>
<key alias="emptyRecycleBin">Tøm papirkurv</key>
<key alias="enable">Aktivér</key>
<key alias="exportDocumentType">Eksportér dokumenttype</key>
<key alias="importdocumenttype">Importér dokumenttype</key>
<key alias="importDocumentType">Importér dokumenttype</key>
<key alias="importPackage">Importér pakke</key>
<key alias="liveEdit">Redigér i Canvas</key>
<key alias="logout">Log af</key>
Expand Down
4 changes: 2 additions & 2 deletions src/Umbraco.Web.UI/umbraco/config/lang/de.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
<key alias="createGroup">Neue Gruppe</key>
<key alias="delete">Entfernen</key>
<key alias="disable">Deaktivieren</key>
<key alias="emptyrecyclebin">Papierkorb leeren</key>
<key alias="emptyRecycleBin">Papierkorb leeren</key>
<key alias="enable">Aktivieren</key>
<key alias="exportDocumentType">Dokumenttyp exportieren</key>
<key alias="importdocumenttype">Dokumenttyp importieren</key>
<key alias="importDocumentType">Dokumenttyp importieren</key>
<key alias="importPackage">Paket importieren</key>
<key alias="liveEdit">'Canvas'-Modus starten</key>
<key alias="logout">Abmelden</key>
Expand Down
4 changes: 2 additions & 2 deletions src/Umbraco.Web.UI/umbraco/config/lang/en.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
<key alias="delete">Delete</key>
<key alias="disable">Disable</key>
<key alias="editSettings">Edit settings</key>
<key alias="emptyrecyclebin">Empty recycle bin</key>
<key alias="emptyRecycleBin">Empty recycle bin</key>
<key alias="enable">Enable</key>
<key alias="exportDocumentType">Export Document Type</key>
<key alias="importdocumenttype">Import Document Type</key>
<key alias="importDocumentType">Import Document Type</key>
<key alias="importPackage">Import Package</key>
<key alias="liveEdit">Edit in Canvas</key>
<key alias="logout">Exit</key>
Expand Down
4 changes: 2 additions & 2 deletions src/Umbraco.Web.UI/umbraco/config/lang/en_us.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
<key alias="delete">Delete</key>
<key alias="disable">Disable</key>
<key alias="editSettings">Edit settings</key>
<key alias="emptyrecyclebin">Empty recycle bin</key>
<key alias="emptyRecycleBin">Empty recycle bin</key>
<key alias="enable">Enable</key>
<key alias="exportDocumentType">Export Document Type</key>
<key alias="importdocumenttype">Import Document Type</key>
<key alias="importDocumentType">Import Document Type</key>
<key alias="importPackage">Import Package</key>
<key alias="liveEdit">Edit in Canvas</key>
<key alias="logout">Exit</key>
Expand Down
4 changes: 2 additions & 2 deletions src/Umbraco.Web.UI/umbraco/config/lang/es.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
<key alias="createGroup">Crear grupo</key>
<key alias="delete">Borrar</key>
<key alias="disable">Deshabilitar</key>
<key alias="emptyrecyclebin">Vaciar Papelera</key>
<key alias="emptyRecycleBin">Vaciar Papelera</key>
<key alias="enable">Activar</key>
<key alias="exportDocumentType">Exportar Documento (tipo)</key>
<key alias="importdocumenttype">Importar Documento (tipo)</key>
<key alias="importDocumentType">Importar Documento (tipo)</key>
<key alias="importPackage">Importar Paquete</key>
<key alias="liveEdit">Editar en vivo</key>
<key alias="logout">Cerrar sesión</key>
Expand Down
4 changes: 2 additions & 2 deletions src/Umbraco.Web.UI/umbraco/config/lang/fr.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
<key alias="createGroup">Créer un groupe</key>
<key alias="delete">Supprimer</key>
<key alias="disable">Désactiver</key>
<key alias="emptyrecyclebin">Vider la corbeille</key>
<key alias="emptyRecycleBin">Vider la corbeille</key>
<key alias="enable">Activer</key>
<key alias="exportDocumentType">Exporter le type de document</key>
<key alias="importdocumenttype">Importer un type de document</key>
<key alias="importDocumentType">Importer un type de document</key>
<key alias="importPackage">Importer un package</key>
<key alias="liveEdit">Editer dans Canvas</key>
<key alias="logout">Déconnexion</key>
Expand Down
4 changes: 2 additions & 2 deletions src/Umbraco.Web.UI/umbraco/config/lang/he.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
<key alias="createPackage">צור חבילה</key>
<key alias="delete">מחק</key>
<key alias="disable">נטרל</key>
<key alias="emptyrecyclebin">רוקן סל מיחזור</key>
<key alias="emptyRecycleBin">רוקן סל מיחזור</key>
<key alias="exportDocumentType">ייצא סוג קובץ</key>
<key alias="importdocumenttype">ייבא סוג מסמך</key>
<key alias="importDocumentType">ייבא סוג מסמך</key>
<key alias="importPackage">ייבא חבילה</key>
<key alias="liveEdit">ערוך במצב "קנבס"</key>
<key alias="logout">יציאה</key>
Expand Down
4 changes: 2 additions & 2 deletions src/Umbraco.Web.UI/umbraco/config/lang/it.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
<key alias="createPackage">Crea pacchetto</key>
<key alias="delete">Cancella</key>
<key alias="disable">Disabilita</key>
<key alias="emptyrecyclebin">Svuota il cestino</key>
<key alias="emptyRecycleBin">Svuota il cestino</key>
<key alias="exportDocumentType">Esporta il tipo di documento</key>
<key alias="importdocumenttype">Importa il tipo di documento</key>
<key alias="importDocumentType">Importa il tipo di documento</key>
<key alias="importPackage">Importa il pacchetto</key>
<key alias="liveEdit">Modifica in Area di Lavoro</key>
<key alias="logout">Uscita</key>
Expand Down
4 changes: 2 additions & 2 deletions src/Umbraco.Web.UI/umbraco/config/lang/ja.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
<key alias="createPackage">パッケージの作成</key>
<key alias="delete">削除</key>
<key alias="disable">無効</key>
<key alias="emptyrecyclebin">ごみ箱を空にする</key>
<key alias="emptyRecycleBin">ごみ箱を空にする</key>
<key alias="exportDocumentType">ドキュメントタイプの書出</key>
<key alias="importdocumenttype">ドキュメントタイプの読込</key>
<key alias="importDocumentType">ドキュメントタイプの読込</key>
<key alias="importPackage">パッケージの読み込み</key>
<key alias="liveEdit">ライブ編集</key>
<key alias="logout">ログアウト</key>
Expand Down
4 changes: 2 additions & 2 deletions src/Umbraco.Web.UI/umbraco/config/lang/ko.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
<key alias="createPackage">패키지 새로 만들기</key>
<key alias="delete">삭제</key>
<key alias="disable">비활성</key>
<key alias="emptyrecyclebin">휴지통 비우기</key>
<key alias="emptyRecycleBin">휴지통 비우기</key>
<key alias="exportDocumentType">추출 문서 유형</key>
<key alias="importdocumenttype">등록 문서 유형</key>
<key alias="importDocumentType">등록 문서 유형</key>
<key alias="importPackage">패키지 등록</key>
<key alias="liveEdit">캔버스 내용 편집</key>
<key alias="logout">종료</key>
Expand Down
4 changes: 2 additions & 2 deletions src/Umbraco.Web.UI/umbraco/config/lang/nb.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
<key alias="createPackage">Opprett pakke</key>
<key alias="delete">Slett</key>
<key alias="disable">Deaktiver</key>
<key alias="emptyrecyclebin">Tøm papirkurv</key>
<key alias="emptyRecycleBin">Tøm papirkurv</key>
<key alias="exportDocumentType">Eksporter dokumenttype</key>
<key alias="importdocumenttype">Importer dokumenttype</key>
<key alias="importDocumentType">Importer dokumenttype</key>
<key alias="importPackage">Importer pakke</key>
<key alias="liveEdit">Rediger i Canvas</key>
<key alias="logout">Logg av</key>
Expand Down
4 changes: 2 additions & 2 deletions src/Umbraco.Web.UI/umbraco/config/lang/nl.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
<key alias="delete">Verwijderen</key>
<key alias="disable">Uitschakelen</key>
<key alias="editSettings">Instellingen wijzigen</key>
<key alias="emptyrecyclebin">Prullenbak leegmaken</key>
<key alias="emptyRecycleBin">Prullenbak leegmaken</key>
<key alias="enable">Inschakelen</key>
<key alias="exportDocumentType">Documenttype exporteren</key>
<key alias="importdocumenttype">Documenttype importeren</key>
<key alias="importDocumentType">Documenttype importeren</key>
<key alias="importPackage">Package importeren</key>
<key alias="liveEdit">Aanpassen in Canvas</key>
<key alias="logout">Afsluiten</key>
Expand Down
4 changes: 2 additions & 2 deletions src/Umbraco.Web.UI/umbraco/config/lang/pl.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
<key alias="createGroup">Stwórz grupę</key>
<key alias="delete">Usuń</key>
<key alias="disable">Deaktywuj</key>
<key alias="emptyrecyclebin">Opróżnij kosz</key>
<key alias="emptyRecycleBin">Opróżnij kosz</key>
<key alias="enable">Aktywuj</key>
<key alias="exportDocumentType">Eksportuj typ dokumentu</key>
<key alias="importdocumenttype">Importuj typ dokumentu</key>
<key alias="importDocumentType">Importuj typ dokumentu</key>
<key alias="importPackage">Importuj zbiór</key>
<key alias="liveEdit">Edytuj na stronie</key>
<key alias="logout">Wyjście</key>
Expand Down
4 changes: 2 additions & 2 deletions src/Umbraco.Web.UI/umbraco/config/lang/pt.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
<key alias="createPackage">Criar Pacote</key>
<key alias="delete">Remover</key>
<key alias="disable">Desabilitar</key>
<key alias="emptyrecyclebin">Esvaziar Lixeira</key>
<key alias="emptyRecycleBin">Esvaziar Lixeira</key>
<key alias="exportDocumentType">Exportar Tipo de Documento</key>
<key alias="importdocumenttype">Importar Tipo de Documento</key>
<key alias="importDocumentType">Importar Tipo de Documento</key>
<key alias="importPackage">Importar Pacote</key>
<key alias="liveEdit">Editar na Tela</key>
<key alias="logout">Sair</key>
Expand Down
4 changes: 2 additions & 2 deletions src/Umbraco.Web.UI/umbraco/config/lang/ru.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
<key alias="defaultValue">Значение по умолчанию</key>
<key alias="delete">Удалить</key>
<key alias="disable">Отключить</key>
<key alias="emptyrecyclebin">Очистить корзину</key>
<key alias="emptyRecycleBin">Очистить корзину</key>
<key alias="enable">Включить</key>
<key alias="export">Экспорт</key>
<key alias="exportDocumentType">Экспортировать</key>
<key alias="importdocumenttype">Импортировать</key>
<key alias="importDocumentType">Импортировать</key>
<key alias="importPackage">Импортировать пакет</key>
<key alias="liveEdit">Править на месте</key>
<key alias="logout">Выйти</key>
Expand Down
4 changes: 2 additions & 2 deletions src/Umbraco.Web.UI/umbraco/config/lang/sv.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
<key alias="defaultValue">Standardvärde</key>
<key alias="delete">Ta bort</key>
<key alias="disable">Avaktivera</key>
<key alias="emptyrecyclebin">Töm papperskorgen</key>
<key alias="emptyRecycleBin">Töm papperskorgen</key>
<key alias="exportDocumentType">Exportera dokumenttyp</key>
<key alias="importdocumenttype">Importera dokumenttyp</key>
<key alias="importDocumentType">Importera dokumenttyp</key>
<key alias="importPackage">Importera paket</key>
<key alias="liveEdit">Redigera i Canvas</key>
<key alias="logout">Logga ut</key>
Expand Down
4 changes: 2 additions & 2 deletions src/Umbraco.Web.UI/umbraco/config/lang/tr.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
<key alias="delete">Sil</key>
<key alias="disable">Devre Dışı Bırak</key>
<key alias="editSettings">Ayarları düzenle</key>
<key alias="emptyrecyclebin">Geri dönüşüm kutusunu boşalt</key>
<key alias="emptyRecycleBin">Geri dönüşüm kutusunu boşalt</key>
<key alias="enable">Etkinleştir</key>
<key alias="exportDocumentType">Belge Türünü Dışa Aktar</key>
<key alias="importdocumenttype">Belge Türünü İçe Aktar</key>
<key alias="importDocumentType">Belge Türünü İçe Aktar</key>
<key alias="importPackage">Paketi İçe Aktar</key>
<key alias="liveEdit">Kanvas'ta Düzenle</key>
<key alias="logout">Çıkış</key>
Expand Down
4 changes: 2 additions & 2 deletions src/Umbraco.Web.UI/umbraco/config/lang/zh.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
<key alias="createPackage">创建扩展包</key>
<key alias="delete">删除</key>
<key alias="disable">禁用</key>
<key alias="emptyrecyclebin">清空回收站</key>
<key alias="emptyRecycleBin">清空回收站</key>
<key alias="exportDocumentType">导出文档类型</key>
<key alias="importdocumenttype">导入文档类型</key>
<key alias="importDocumentType">导入文档类型</key>
<key alias="importPackage">导入扩展包</key>
<key alias="liveEdit">实时编辑模式</key>
<key alias="logout">退出</key>
Expand Down
4 changes: 2 additions & 2 deletions src/Umbraco.Web.UI/umbraco/config/lang/zh_tw.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
<key alias="createPackage">創建擴展包</key>
<key alias="delete">刪除</key>
<key alias="disable">禁用</key>
<key alias="emptyrecyclebin">清空回收站</key>
<key alias="emptyRecycleBin">清空回收站</key>
<key alias="exportDocumentType">匯出文檔類型</key>
<key alias="importdocumenttype">導入文檔類型</key>
<key alias="importDocumentType">導入文檔類型</key>
<key alias="importPackage">導入擴展包</key>
<key alias="liveEdit">即時編輯模式</key>
<key alias="logout">退出</key>
Expand Down

0 comments on commit 8703d7c

Please sign in to comment.