|
123 | 123 | :itemType="LoginOption.ENTERPRISE_SSO"
|
124 | 124 | class="selectable-item bottomMargin"
|
125 | 125 | ></SelectableItem>
|
| 126 | + <SelectableItem |
| 127 | + v-if="app === 'AMAZONQ'" |
| 128 | + @toggle="toggleItemSelection" |
| 129 | + :isSelected="selectedLoginOption === LoginOption.IAM_CREDENTIAL" |
| 130 | + :itemId="LoginOption.IAM_CREDENTIAL" |
| 131 | + :itemText="''" |
| 132 | + :itemTitle="'Use with IAM Credentials'" |
| 133 | + :itemType="LoginOption.IAM_CREDENTIAL" |
| 134 | + class="selectable-item bottomMargin" |
| 135 | + ></SelectableItem> |
126 | 136 | <SelectableItem
|
127 | 137 | v-if="app === 'TOOLKIT'"
|
128 | 138 | @toggle="toggleItemSelection"
|
|
238 | 248 | </svg>
|
239 | 249 | </button>
|
240 | 250 | <div class="header">IAM Credentials:</div>
|
241 |
| - <div class="hint">Credentials will be added to the appropriate ~/.aws/ files</div> |
242 |
| - <div class="title topMargin">Profile Name</div> |
243 |
| - <div class="hint">The identifier for these credentials</div> |
244 |
| - <input |
245 |
| - class="iamInput bottomMargin" |
246 |
| - type="text" |
247 |
| - id="profileName" |
248 |
| - name="profileName" |
249 |
| - v-model="profileName" |
250 |
| - @keydown.enter="handleContinueClick()" |
251 |
| - /> |
| 251 | + <div v-if="app === 'TOOLKIT'"> |
| 252 | + <div class="hint">Credentials will be added to the appropriate ~/.aws/ files</div> |
| 253 | + <div class="title topMargin">Profile Name</div> |
| 254 | + <div class="hint">The identifier for these credentials</div> |
| 255 | + <input |
| 256 | + class="iamInput bottomMargin" |
| 257 | + type="text" |
| 258 | + id="profileName" |
| 259 | + name="profileName" |
| 260 | + v-model="profileName" |
| 261 | + @keydown.enter="handleContinueClick()" |
| 262 | + /> |
| 263 | + </div> |
252 | 264 | <div class="title">Access Key</div>
|
253 | 265 | <input
|
254 | 266 | class="iamInput bottomMargin"
|
@@ -587,7 +599,11 @@ export default defineComponent({
|
587 | 599 | return this.startUrl.length == 0 || this.startUrlError.length > 0 || !this.selectedRegion
|
588 | 600 | },
|
589 | 601 | shouldDisableIamContinue() {
|
590 |
| - return this.profileName.length <= 0 || this.accessKey.length <= 0 || this.secretKey.length <= 0 |
| 602 | + if (this.app === 'TOOLKIT') { |
| 603 | + return this.profileName.length <= 0 || this.accessKey.length <= 0 || this.secretKey.length <= 0 |
| 604 | + } else { |
| 605 | + return this.accessKey.length <= 0 || this.secretKey.length <= 0 |
| 606 | + } |
591 | 607 | },
|
592 | 608 | },
|
593 | 609 | })
|
|
0 commit comments