upload binary file in edit opens the pane

pull/37/head
Niko PLP 4 months ago
parent 00e39f0cc4
commit 68ad4ac632
  1. 14
      ng-app/src/lib/FullLayout.svelte
  2. 2
      ng-app/src/zeras.ts

@ -35,7 +35,7 @@
// @ts-ignore
import { t } from "svelte-i18n";
import { onMount, onDestroy, tick } from "svelte";
import { cur_tab, cur_viewer, cur_editor, toggle_graph_discrete, cur_tab_update, get_class,
import { cur_tab, cur_viewer, cur_editor, toggle_graph_discrete, cur_tab_update, get_class, get_app,
available_editors, available_viewers, set_editor, set_viewer, set_view_or_edit, toggle_live_edit,
has_editor_chat, all_files_count, all_comments_count, nav_bar, save, hideMenu, show_modal_menu, show_modal_create, openModalCreate } from "../tab";
import {
@ -673,6 +673,18 @@
</MenuItem>
{/each}
{/if}
{#if open_edit_with}
<MenuItem title={get_app("n:g:z:upload_file")["ng:a"]} extraClass="submenu" clickable={ () => {openPane("files")} }>
<ZeraIcon
zera={get_app("n:g:z:upload_file")["ng:u"]}
config={{
tabindex:"-1",
class:"w-7 h-7 text-gray-700 focus:outline-none dark:text-white "
}}
/>
<span class="ml-3">{get_app("n:g:z:upload_file")["ng:n"]}</span>
</MenuItem>
{/if}
{#if !$cur_tab.view_or_edit || open_edit_with }
<li title={$t("doc.menu.live_editing_description")} style="margin: 7px 0; padding-left: 32px;" class="toggle">
<Toggle

@ -482,7 +482,7 @@ export const official_apps = {
"ng:g": "n:g:z:upload_file",
"ng:b": "UploadFile",
"ng:o": [],
"ng:w": ["data:graph"],
"ng:w": [],
},
"n:g:z:import_file": {
"ng:n": "Import from external file",

Loading…
Cancel
Save