-
+
+ |
- | |
-
+
+ |
variableEditor.editVariable(path)}
href="#{path}"
>
- {#if marked}{@html marked}{:else}{path}{/if}
+ {#if marked}
+ {@html marked}
+ {:else}
+ {path}
+ {/if}
- | |
-
+
+ |
{truncate(value ?? '****', 20)}
@@ -204,43 +212,39 @@
{/if}
- | |
- {truncate(description ?? '', 50)} |
+
+
+ {truncate(description ?? '', 50)}
+ |
-
-
-
- {#if is_linked}
-
-
-
- This variable is linked with a resource of the same path. They are
- deleted and renamed together.
-
-
- {/if}
-
-
- {#if account}
-
-
-
- This OAuth token will be kept up-to-date in the background by Windmill
- using its refresh token
-
-
- {/if}
-
+
+
+ {#if is_linked}
+
+
+
+ This variable is linked with a resource of the same path. They are deleted
+ and renamed together.
+
+
+ {/if}
+ {#if account}
+
+
+
+ This OAuth token will be kept up-to-date in the background by Windmill
+ using its refresh token
+
+
+ {/if}
{#if is_refreshed}
-
+
{#if refresh_error}
-
+
-
+
+
Latest exchange of the refresh token did not succeed. Error: {refresh_error}
@@ -286,25 +291,24 @@
{/if}
- | |
-
+
+ |
{
+ items={() => {
let owner = isOwner(path, $userStore, $workspaceStore)
return [
{
displayName: 'Edit',
- icon: faEdit,
+ icon: Pen,
action: () => variableEditor.editVariable(path),
disabled: !canWrite
},
{
displayName: 'Delete',
- icon: faTrash,
+ icon: Trash,
type: 'delete',
action: (event) => {
- if (event?.shiftKey) {
+ if (event['shiftKey']) {
deleteVariable(path, account)
} else {
deleteConfirmedCallback = () => {
@@ -316,7 +320,7 @@
},
{
displayName: 'Deploy to prod/staging',
- icon: faFileExport,
+ icon: FileUp,
action: () => {
deploymentDrawer.openDrawer(path, 'variable')
}
@@ -326,13 +330,13 @@
action: () => {
shareModal.openDrawer(path, 'variable')
},
- icon: faShare
+ icon: Share
},
...(account != undefined
? [
{
displayName: 'Refresh token',
- icon: faRefresh,
+ icon: RefreshCw,
action: async () => {
await OauthService.refreshToken({
workspace: $workspaceStore ?? '',
@@ -350,11 +354,11 @@
]
}}
/>
- | |
-
+
+
{/each}