From 813f9c57d227a686c6fb08137a2b6b26e9986ef4 Mon Sep 17 00:00:00 2001 From: tv Date: Mon, 26 Oct 2026 23:21:01 +0100 Subject: show interpolated values in GET /admin/config --- src/config/import.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/config/import.rs') diff --git a/src/config/import.rs b/src/config/import.rs index a5b2a63..9f315f3 100644 --- a/src/config/import.rs +++ b/src/config/import.rs @@ -185,6 +185,12 @@ impl Importer { } } + /// Whether this is text with placeholders (`interpolated`) rather than an importer + /// of the whole value: its result is shown, the importers' are not. + pub(crate) fn is_interpolation(&self) -> bool { + matches!(self.source, Source::Template { .. }) + } + /// The imported content: text, or JSON. pub(crate) fn fetch(&self) -> Result { let text = match &self.source { -- cgit v1.3.1