|
24 | 24 | display: flex;
|
25 | 25 | flex-direction: row;
|
26 | 26 | background-color: #28632b;
|
27 |
| - color: #ffffff; |
28 | 27 | padding: 10px;
|
29 | 28 | "
|
30 | 29 | >
|
31 |
| - <div class="icon icon-lg icon-vscode-check"></div> |
| 30 | + <div class="icon icon-lg icon-vscode-check" style="color: #ffffff"></div> |
32 | 31 |
|
33 |
| - <div style="display: flex; flex-direction: row"> |
34 |
| - Connected to <span style="font-weight: bold">{{ authFormDisplayName }}</span |
| 32 | + <div style="display: flex; flex-direction: row; color: #ffffff"> |
| 33 | + Connected to <span style="font-weight: bold; color: #ffffff">{{ authFormDisplayName }}</span |
35 | 34 | >! Switch between existing connections in the <a
|
36 | 35 | v-on:click="showConnectionQuickPick()"
|
37 |
| - style="cursor: pointer" |
| 36 | + style="cursor: pointer; color: rgb(147, 196, 255)" |
38 | 37 | >Toolkit panel</a
|
39 | 38 | >.
|
40 | 39 | </div>
|
41 | 40 |
|
42 | 41 | <div
|
43 | 42 | v-on:click="closeStatusBar"
|
44 |
| - style="cursor: pointer" |
| 43 | + style="cursor: pointer; color: #ffffff" |
45 | 44 | class="icon icon-lg icon-vscode-chrome-close"
|
46 | 45 | ></div>
|
47 | 46 | </div>
|
|
54 | 53 | display: flex;
|
55 | 54 | flex-direction: row;
|
56 | 55 | background-color: #28632b;
|
57 |
| - color: #ffffff; |
58 | 56 | padding: 10px;
|
59 | 57 | "
|
60 | 58 | >
|
61 |
| - <div class="icon icon-lg icon-vscode-check"></div> |
| 59 | + <div class="icon icon-lg icon-vscode-check" style="color: #ffffff"></div> |
62 | 60 |
|
63 |
| - <div style="display: flex; flex-direction: row"> |
64 |
| - IAM Credential(s) detected, but not selected. Choose one in the <a |
| 61 | + <div style="display: flex; flex-direction: row; color: #ffffff"> |
| 62 | + IAM Credential(s) detected. Select one in the <a |
65 | 63 | v-on:click="showConnectionQuickPick()"
|
66 |
| - style="cursor: pointer" |
| 64 | + style="cursor: pointer; color: rgb(147, 196, 255)" |
67 | 65 | >Toolkit panel</a
|
68 | 66 | >.
|
69 | 67 | </div>
|
70 | 68 |
|
71 | 69 | <div
|
72 | 70 | v-on:click="closeFoundCredentialStatusBar()"
|
73 |
| - style="cursor: pointer" |
| 71 | + style="cursor: pointer; color: #ffffff" |
74 | 72 | class="icon icon-lg icon-vscode-chrome-close"
|
75 | 73 | ></div>
|
76 | 74 | </div>
|
|
80 | 78 | <!-- Logo + Title -->
|
81 | 79 | <div>
|
82 | 80 | <div style="display: flex; justify-content: left; align-items: center; gap: 25px">
|
83 |
| - <div style="fill: white"> |
| 81 | + <div id="logo"> |
84 | 82 | <svg
|
85 | 83 | id="Layer_1"
|
86 | 84 | data-name="Layer 1"
|
|
103 | 101 | </svg>
|
104 | 102 | </div>
|
105 | 103 | <div>
|
106 |
| - <h3>AWS Toolkit for VSCode</h3> |
107 |
| - <h1>Welcome & Getting Started</h1> |
| 104 | + <h3 style="margin-bottom: 0">AWS Toolkit for VS Code</h3> |
| 105 | + <h1 style="margin-top: 0">Welcome & Getting Started</h1> |
108 | 106 | </div>
|
109 | 107 | </div>
|
110 | 108 | </div>
|
|
113 | 111 | <div class="flex-container">
|
114 | 112 | <div id="left-column">
|
115 | 113 | <div>
|
116 |
| - <h1>Select a feature to begin</h1> |
| 114 | + <h2>Select a feature to begin</h2> |
117 | 115 | <ul class="service-item-list" v-for="item in serviceItems">
|
118 | 116 | <ServiceItem
|
119 | 117 | :title="getServiceItemProps(item.id).title"
|
@@ -197,7 +195,6 @@ export default defineComponent({
|
197 | 195 | // This handles auth changes triggered outside of this webview.
|
198 | 196 | client.onDidConnectionUpdate(() => {
|
199 | 197 | this.updateServiceConnections()
|
200 |
| - this.updateFoundCredentialButNotConnected() |
201 | 198 | // This handles the edge case where we have selected a service item
|
202 | 199 | // and its content window is being shown. If there is an external
|
203 | 200 | // event that changes the state of this service (eg: disconnected)
|
@@ -345,7 +342,12 @@ export default defineComponent({
|
345 | 342 | * has not actively selected one.
|
346 | 343 | */
|
347 | 344 | async updateFoundCredentialButNotConnected() {
|
348 |
| - if ((await client.isCredentialExists()) && !(await client.isCredentialConnected())) { |
| 345 | + const isFirstUse = await client.isExtensionFirstUse() |
| 346 | + // Order these are called matters since isCredentialExists() pulls in local credentials |
| 347 | + const isCredentialConnected = await client.isCredentialConnected() |
| 348 | + const isCredentialExists = await client.isCredentialExists() |
| 349 | +
|
| 350 | + if (isFirstUse && (isCredentialConnected || isCredentialExists)) { |
349 | 351 | this.foundCredentialButNotConnected = true
|
350 | 352 | } else {
|
351 | 353 | this.foundCredentialButNotConnected = false
|
|
0 commit comments