api-viewer: whitespace, indentation and typo fixes

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2020-02-13 17:53:57 +01:00
parent 509eaa9290
commit ab3ca2634d

View File

@ -189,9 +189,9 @@ Ext.onReady(function() {
if (info.returns) { if (info.returns) {
var retinf = info.returns; var retinf = info.returns;
var rtype = retinf.type; var rtype = retinf.type;
if (!rtype && retinf.items) if (!rtype && retinf.items)
rtype = 'array'; rtype = 'array';
if (!rtype) if (!rtype)
rtype = 'object'; rtype = 'object';
@ -225,9 +225,9 @@ Ext.onReady(function() {
if (info.permissions.user) { if (info.permissions.user) {
if (!info.permissions.description) { if (!info.permissions.description) {
if (info.permissions.user === 'world') { if (info.permissions.user === 'world') {
permhtml += "Accessible without any authententification."; permhtml += "Accessible without any authentication.";
} else if (info.permissions.user === 'all') { } else if (info.permissions.user === 'all') {
permhtml += "Accessible by all authententicated users."; permhtml += "Accessible by all authenticated users.";
} else { } else {
permhtml += 'Onyl accessible by user "' + permhtml += 'Onyl accessible by user "' +
info.permissions.user + '"'; info.permissions.user + '"';