summaryrefslogtreecommitdiffstats
path: root/install/ui/src/freeipa/dialog.js
diff options
context:
space:
mode:
Diffstat (limited to 'install/ui/src/freeipa/dialog.js')
-rw-r--r--install/ui/src/freeipa/dialog.js22
1 files changed, 22 insertions, 0 deletions
diff --git a/install/ui/src/freeipa/dialog.js b/install/ui/src/freeipa/dialog.js
index 18e2dc50..0a8497b1 100644
--- a/install/ui/src/freeipa/dialog.js
+++ b/install/ui/src/freeipa/dialog.js
@@ -1076,6 +1076,28 @@ IPA.message_dialog = function(spec) {
return that;
};
+IPA.about_dialog = function(spec) {
+
+ spec = spec || {};
+
+ spec.name = spec.name || 'version_dialog';
+ var product = 'FreeIPA';
+ var version = 'Unknown';
+ var msg = text.get('@i18n:dialogs.about_message', '${product}, version: ${version}');
+ if (IPA.env) {
+ product = IPA.env.product_name || product;
+ version = IPA.env.version;
+ }
+ msg = msg.replace('${product}', product);
+ msg = msg.replace('${version}', version);
+ spec.message = spec.message || msg;
+ spec.title = spec.title || text.get('@i18n:dialogs.about_title', 'About');
+
+ var that = IPA.message_dialog(spec);
+
+ return that;
+};
+
/**
* Confirmation dialog
*