lib/scrivito/ui_config.rb in scrivito_sdk-1.3.1 vs lib/scrivito/ui_config.rb in scrivito_sdk-1.4.0.rc1
- old
+ new
@@ -9,13 +9,16 @@
def to_json
{
app_extension_tags: app_extension_tags,
editing_context: editing_context_config,
session: session_config,
+ backend_endpoint: Configuration.endpoint,
+ tenant: Configuration.tenant,
i18n: i18n_config,
is_development_mode: Rails.env.development?,
resource_dialog: resource_dialog_config,
+ revision: revision_config,
user: user_config,
user_permissions: user_permissions_config,
obj_class: obj_class_config,
widget_class: widget_class_config,
}.to_json
@@ -86,9 +89,13 @@
{
current: {
id: editor.id
}
}
+ end
+
+ def revision_config
+ {published_revision_id: Workspace.published.revision_id}
end
def editor
editing_context.editor
end