@fonderie/vue-admin-screens 1.6.0 → 1.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -3045,9 +3045,16 @@ var AdminShell = (0, import_vue18.defineComponent)({
3045
3045
  locale: e.locale,
3046
3046
  system: e.system,
3047
3047
  allowAddLocale: true,
3048
+ localeTabs: true,
3048
3049
  onSaved: () => editing.value = null,
3049
3050
  onDeleted: () => editing.value = null,
3050
- "onAdd-locale": (type) => editing.value = { kind: "template-new", type }
3051
+ "onAdd-locale": (type, c2) => editing.value = { kind: "template-new", type, locales: c2.locales },
3052
+ "onSelect-locale": (tpl) => editing.value = {
3053
+ kind: "template",
3054
+ type: tpl.type,
3055
+ locale: tpl.locale,
3056
+ system: tpl.system === true
3057
+ }
3051
3058
  })
3052
3059
  ];
3053
3060
  return (0, import_vue18.h)(import_vue_courier_admin_screens.TemplateListScreen, {