dce8717866
* basic-functionality demo for token CRUD * Styling for tokens crud * Tokens crud styles * Expires, not expiry * Mobile styles etc * Refresh and redirect rules for policy save and token creation * Delete method and associated serializer change * Ability-checking for tokens * Update policies acceptance tests to reflect new redirect rules * Token ability unit tests * Mirage config methods for token crud * Token CRUD acceptance tests * A couple visual diff snapshots * Add and Delete abilities referenced for token operations * Changing timeouts and adding a copy to clipboard action * replaced accessor with secret when copying to clipboard * PR comments addressed * Simplified error passing for policy editor
17 lines
429 B
JavaScript
17 lines
429 B
JavaScript
import Component from '@glimmer/component';
|
|
|
|
export default class Tooltip extends Component {
|
|
get text() {
|
|
const inputText = this.args.text?.toString();
|
|
if (!inputText || inputText.length < 30) {
|
|
return inputText;
|
|
}
|
|
|
|
const prefix = inputText.substr(0, 15).trim();
|
|
const suffix = inputText
|
|
.substr(inputText.length - 10, inputText.length)
|
|
.trim();
|
|
return `${prefix}...${suffix}`;
|
|
}
|
|
}
|