Skip to content

Commit

Permalink
access key tab
Browse files Browse the repository at this point in the history
  • Loading branch information
daniellacosse committed Nov 12, 2024
1 parent f30ccc7 commit ee8c388
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
10 changes: 10 additions & 0 deletions server_manager/messages/master_messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1051,6 +1051,16 @@
"message": "Access keys",
"description": "This string appears within the server view as a header of a table column that displays server access keys."
},
"server_access_keys_tab": {
"message": "Access keys ($KEY_COUNT$)",
"description": "This string is a tab header indicating to the user that they're currently managing their access keys.",
"placeholders": {
"KEY_COUNT": {
"content": "{keyCount}",
"example": "12"
}
}
},
"server_connections": {
"message": "Connections",
"description": "This string appears within the server view as a header of the section that displays server information and access keys."
Expand Down
11 changes: 8 additions & 3 deletions server_manager/www/ui_components/outline-server-view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -549,10 +549,15 @@ export class ServerView extends DirMixin(PolymerElement) {
attr-for-selected="name"
noink=""
>
<paper-tab name="connections"
>[[localize('server-connections')]]</paper-tab
>
<template is="dom-if" if="{{!featureFlags.serverMetricsTab}}">
<paper-tab name="connections"
>[[localize('server-connections')]]</paper-tab
>
</template>
<template is="dom-if" if="{{featureFlags.serverMetricsTab}}">
<paper-tab name="connections">
[[localize('server-access-key-tab', accessKeyRows.length)]]
</paper-tab>
<paper-tab name="metrics">[[localize('server-metrics')]]</paper-tab>
</template>
<paper-tab name="settings" id="settingsTab"
Expand Down

0 comments on commit ee8c388

Please sign in to comment.