This commit is contained in:
2020-06-25 13:36:53 +00:00
parent e4836a7396
commit 186d4858fa
2 changed files with 11 additions and 3 deletions

View File

@@ -5,9 +5,7 @@ PRIORITY - ALWAYS Lowest level stuff first, i.e. TODO at server, api route chang
todo: Administration - translation todo: Administration - translation
- Replace function
Search and replace
- Export function (download as file I guess) - Export function (download as file I guess)
On Translation editor form On Translation editor form
- Import function - Import function

View File

@@ -507,6 +507,9 @@ async function clickHandler(menuItem) {
case "replace": case "replace":
m.vm.replaceDialog = true; m.vm.replaceDialog = true;
break; break;
case "export":
alert("download stub");
break;
case "delete": case "delete":
m.vm.remove(); m.vm.remove();
break; break;
@@ -633,6 +636,13 @@ function generateMenu(vm) {
}); });
} }
menuOptions.menuItems.push({
title: "Export",
icon: "fa-file-download",
key: FORM_KEY + ":export",
vm: vm
});
window.$gz.eventBus.$emit("menu-change", menuOptions); window.$gz.eventBus.$emit("menu-change", menuOptions);
} }