"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "ui/app/components/console/ui-panel.js" between
vault-1.8.1.tar.gz and vault-1.8.2.tar.gz

About: vault is a tool for secrets management, encryption as a service, and privileged access management.

ui-panel.js  (vault-1.8.1):ui-panel.js  (vault-1.8.2)
skipping to change at line 95 skipping to change at line 95
} catch (error) { } catch (error) {
if (error instanceof ControlGroupError) { if (error instanceof ControlGroupError) {
return this.logAndOutput(command, this.controlGroup.logFromError(error)) ; return this.logAndOutput(command, this.controlGroup.logFromError(error)) ;
} }
this.logAndOutput(command, logFromError(error, path, method)); this.logAndOutput(command, logFromError(error, path, method));
} }
}), }),
refreshRoute: task(function*() { refreshRoute: task(function*() {
let owner = getOwner(this); let owner = getOwner(this);
let routeName = this.router.currentRouteName; let currentRoute = owner.lookup(`router:main`).get('currentRouteName');
let route = owner.lookup(`route:${routeName}`);
try { try {
this.store.clearAllDatasets(); this.store.clearAllDatasets();
yield route.refresh(); yield this.router.transitionTo(currentRoute);
this.logAndOutput(null, { type: 'success', content: 'The current screen ha s been refreshed!' }); this.logAndOutput(null, { type: 'success', content: 'The current screen ha s been refreshed!' });
} catch (error) { } catch (error) {
this.logAndOutput(null, { type: 'error', content: 'The was a problem refre shing the current screen.' }); this.logAndOutput(null, { type: 'error', content: 'The was a problem refre shing the current screen.' });
} }
}), }),
routeToExplore: task(function*(command) { routeToExplore: task(function*(command) {
let filter = command.replace('api', '').trim(); let filter = command.replace('api', '').trim();
let content =
'Welcome to the Vault API explorer! \nYou can search for endpoints, see wh
at parameters they accept, and even execute requests with your current token.';
if (filter) {
content = `Welcome to the Vault API explorer! \nWe've filtered the list of
endpoints for '${filter}'.`;
}
try { try {
yield this.router.transitionTo('vault.cluster.open-api-explorer.index', { yield this.router.transitionTo('vault.cluster.open-api-explorer.index', {
queryParams: { filter }, queryParams: { filter },
}); });
let content =
'Welcome to the Vault API explorer! \nYou can search for endpoints, see
what parameters they accept, and even execute requests with your current token.'
;
if (filter) {
content = `Welcome to the Vault API explorer! \nWe've filtered the list
of endpoints for '${filter}'.`;
}
this.logAndOutput(null, { this.logAndOutput(null, {
type: 'success', type: 'success',
content, content,
}); });
} catch (error) { } catch (error) {
this.logAndOutput(null, { if (error.message === 'TransitionAborted') {
type: 'error', this.logAndOutput(null, {
content: 'There was a problem navigating to the api explorer.', type: 'success',
}); content,
});
} else {
this.logAndOutput(null, {
type: 'error',
content: 'There was a problem navigating to the api explorer.',
});
}
} }
}), }),
shiftCommandIndex(keyCode) { shiftCommandIndex(keyCode) {
this.console.shiftCommandIndex(keyCode, val => { this.console.shiftCommandIndex(keyCode, val => {
this.set('inputValue', val); this.set('inputValue', val);
}); });
}, },
scrollToBottom() { scrollToBottom() {
 End of changes. 5 change blocks. 
15 lines changed or deleted 20 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)