- | variableEditor.editVariable(path)}
- href="#{path}">{path}
-
- |
-
-
-
- {truncate(value ?? '****', 20)}
-
- {#if is_secret}
-
-
- This item is secret
-
- {/if}
-
- |
- {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_oauth}
-
- {#if refresh_error}
-
-
-
- Latest exchange of the refresh token did not succeed. Error: {refresh_error}
-
-
- {:else if is_expired}
-
-
-
- The access_token is expired, it will get renewed the next time this
- variable is fetched or you can request is to be refreshed in the
- dropdown on the right.
-
-
- {:else}
-
-
-
- The variable was connected through OAuth and the token is not expired.
-
-
- {/if}
-
- {/if}
-
- |
- variableEditor.editVariable(path),
- disabled: !canWrite
- },
- {
- displayName: 'Delete',
- icon: faTrash,
- type: 'delete',
- action: (event) => {
- if (event?.shiftKey) {
- deleteVariable(path, account)
- } else {
- deleteConfirmedCallback = () => {
- deleteVariable(path, account)
- }
- }
- },
- disabled: !canWrite
- },
- {
- displayName: 'Share',
- action: () => {
- shareModal.openDrawer(path)
- },
- icon: faShare,
- disabled: !canWrite
- },
- ...(account != undefined
- ? [
- {
- displayName: 'Refresh token',
- icon: faRefresh,
- action: async () => {
- await OauthService.refreshToken({
- workspace: $workspaceStore ?? '',
- id: account ?? 0,
- requestBody: {
- path
- }
- })
- sendUserToast('Token refreshed')
- loadVariables()
- }
- }
- ]
- : [])
- ]}
- relative={true}
- /> |
-
- {/each}
-