permhtml += "Unknown systax!";
}
}
+ if (!info.allowtoken) {
+ permhtml += "<br />This API endpoint is not available for API tokens."
+ }
sections.push({
title: 'Required permissions',
Ext.define('Ext.form.SearchField', {
extend: 'Ext.form.field.Text',
alias: 'widget.searchfield',
- emptyText: 'Search',
+
+ emptyText: 'Search...',
+
+ flex: 1,
+
inputType: 'search',
listeners: {
'change': function(){
tools: [
{
type: 'expand',
- handler: function() {
- tree.expandAll();
- },
+ tooltip: 'Expand all',
+ tooltipType: 'title',
+ callback: (tree) => tree.expandAll(),
},
{
type: 'collapse',
- handler: function() {
- tree.collapseAll();
- }
+ tooltip: 'Collapse all',
+ tooltipType: 'title',
+ callback: (tree) => tree.collapseAll(),
},
],
store: store,
});
var deepLink = function() {
- var path = window.location.hash.substring(1);
+ var path = window.location.hash.substring(1).replace(/\/\s*$/, '')
var endpoint = store.findNode('path', path);
if (endpoint) {