mirror of
https://github.com/45Drives/cockpit-navigator.git
synced 2025-07-29 08:34:50 +02:00
fix mode preview with '0' padding
This commit is contained in:
parent
864a127d4b
commit
2950699694
@ -340,7 +340,7 @@ export class NavWindow {
|
||||
update_permissions_preview() {
|
||||
var new_perms = this.get_new_permissions();
|
||||
var text = format_permissions(new_perms);
|
||||
text += " (" + (new_perms & 0o777).toString(8) + ")";
|
||||
text += " (" + (new_perms & 0o777).toString(8).padStart(3, '0') + ")";
|
||||
document.getElementById("nav-mode-preview").innerText = text;
|
||||
this.changed_mode = true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user