mirror of
https://github.com/itdoginfo/podkop.git
synced 2025-12-31 11:56:11 +03:00
feat(podkop): add version display in UI
- Added version display in Podkop UI - Updated init script to fetch and display version
This commit is contained in:
@@ -16,7 +16,11 @@ return view.extend({
|
||||
var m, s, o;
|
||||
|
||||
m = new form.Map('podkop', _('Podkop configuration'), null, ['main', 'second']);
|
||||
|
||||
fs.exec('/etc/init.d/podkop', ['show_version']).then(function (res) {
|
||||
if (res.stdout) {
|
||||
m.title = _('Podkop') + ' v' + res.stdout.trim();
|
||||
}
|
||||
});
|
||||
s = m.section(form.TypedSection, 'main');
|
||||
s.anonymous = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user