mirror of
https://github.com/itdoginfo/podkop.git
synced 2025-12-31 03:48:23 +03:00
feat(podkop): add show_version command
- Update init script to include show_version command - Add show_version function to display current version - Update EXTRA_COMMANDS to include show_version - Remove version from web and config
This commit is contained in:
@@ -17,18 +17,6 @@ return view.extend({
|
||||
|
||||
m = new form.Map('podkop', _('Podkop configuration'), null, ['main', 'second']);
|
||||
|
||||
m = new form.Map('podkop', _('Podkop'), null, ['main', 'second']);
|
||||
L.uci.load('podkop').then(() => {
|
||||
const version = L.uci.get('podkop', 'main', 'version') || '';
|
||||
if (version) {
|
||||
m.title = _('Podkop') + ' v' + version;
|
||||
if (!window.location.search.includes('v=')) {
|
||||
const newUrl = window.location.pathname + '?v=' + version;
|
||||
window.history.replaceState(null, '', newUrl);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
s = m.section(form.TypedSection, 'main');
|
||||
s.anonymous = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user