Skip to content

Commit 82a59d2

Browse files
amazonq: string change "Pro license" (aws#4868)
- Updated our strings for the Amazon Q Pro License - Removed sub string message, per docs - Updated CSS to handle SelectableItem with no itemText Signed-off-by: Nikolas Komonen <[email protected]>
1 parent 119c1a7 commit 82a59d2

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

packages/core/src/login/webview/vue/login.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@
110110
@toggle="toggleItemSelection"
111111
:isSelected="selectedLoginOption === LoginOption.ENTERPRISE_SSO"
112112
:itemId="LoginOption.ENTERPRISE_SSO"
113-
:itemText="'Sign in to AWS with single sign-on'"
114-
:itemTitle="'Use Professional License'"
113+
:itemText="''"
114+
:itemTitle="'Use with Pro license'"
115115
class="selectable-item bottomMargin"
116116
></SelectableItem>
117117
<SelectableItem

packages/core/src/login/webview/vue/selectableItem.vue

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
/>
2424
</svg>
2525
<svg
26-
v-if="itemTitle == 'Workforce' || itemTitle == 'Use Professional License'"
26+
v-if="itemTitle == 'Workforce' || itemTitle == 'Use with Pro license'"
2727
width="16"
2828
height="16"
2929
viewBox="0 0 16 16"
@@ -55,7 +55,7 @@
5555
</div>
5656
<div class="text">
5757
<div class="title">{{ itemTitle }}</div>
58-
<div class="p">{{ itemText }}</div>
58+
<div class="p" v-if="itemText">{{ itemText }}</div>
5959
</div>
6060
</div>
6161
</template>
@@ -96,12 +96,13 @@ export default defineComponent({
9696

9797
<style scoped>
9898
.item-container-base {
99-
padding: 5px;
10099
display: flex;
101100
border-width: 1px;
102101
border-style: solid;
103102
border-color: #625f5f;
104103
user-select: none;
104+
/* Some items do not have itemText, so we need a consistent height for all items */
105+
height: 50px;
105106
}
106107
107108
.hovering {
@@ -121,6 +122,7 @@ export default defineComponent({
121122
display: flex;
122123
flex-direction: column;
123124
font-size: 12px;
125+
justify-content: center;
124126
}
125127
126128
.text.vscode-dark {

0 commit comments

Comments
 (0)