switch out remix icons

This commit is contained in:
Keviin Åberg Kultalahti 2021-04-23 10:33:41 +02:00
parent 33e1b160d2
commit 7012ce46ce
3 changed files with 7 additions and 19 deletions

View File

@ -29,7 +29,8 @@
focusable="false" focusable="false"
aria-hidden={hidden} aria-hidden={hidden}
aria-label={name} aria-label={name}
style={`transform: rotate(${rotation}deg)`}> style={`transform: rotate(${rotation}deg)`}
>
<use xlink:href="#spectrum-icon-18-{name}" /> <use xlink:href="#spectrum-icon-18-{name}" />
</svg> </svg>

View File

@ -14,6 +14,7 @@
$: allowDeleteTrigger = !steps.length $: allowDeleteTrigger = !steps.length
function deleteStep() { function deleteStep() {
console.log('Running')
automationStore.actions.deleteAutomationBlock(block) automationStore.actions.deleteAutomationBlock(block)
} }
</script> </script>
@ -37,7 +38,7 @@
{#if block.type === 'TRIGGER'}Trigger{:else}Step {blockIdx + 1}{/if} {#if block.type === 'TRIGGER'}Trigger{:else}Step {blockIdx + 1}{/if}
</div> </div>
{#if block.type !== 'TRIGGER' || allowDeleteTrigger} {#if block.type !== 'TRIGGER' || allowDeleteTrigger}
<i on:click|stopPropagation={deleteStep} class="delete ri-close-line" /> <div on:click|stopPropagation={deleteStep}><Icon name="Close"/></div>
{/if} {/if}
</header> </header>
<hr /> <hr />
@ -92,18 +93,4 @@
cursor: pointer; cursor: pointer;
opacity: 1; opacity: 1;
} }
.ACTION {
}
.TRIGGER {
}
.LOGIC {
}
p {
color: inherit;
margin-bottom: 0;
}
</style> </style>

View File

@ -3,7 +3,7 @@
import { database } from "stores/backend" import { database } from "stores/backend"
import { automationStore } from "builderStore" import { automationStore } from "builderStore"
import { notifications } from "@budibase/bbui" import { notifications } from "@budibase/bbui"
import { Input, ModalContent } from "@budibase/bbui" import { Icon, Input, ModalContent } from "@budibase/bbui"
import analytics from "analytics" import analytics from "analytics"
let name let name
@ -33,7 +33,7 @@
slot="footer" slot="footer"
target="_blank" target="_blank"
href="https://docs.budibase.com/automate/introduction-to-automate"> href="https://docs.budibase.com/automate/introduction-to-automate">
<i class="ri-information-line" /> <Icon name="InfoOutline" />
<span>Learn about automations</span> <span>Learn about automations</span>
</a> </a>
</ModalContent> </ModalContent>
@ -49,10 +49,10 @@
} }
a span { a span {
text-decoration: underline; text-decoration: underline;
margin-left: var(--spectrum-alias-item-padding-s);
} }
i { i {
font-size: 20px; font-size: 20px;
margin-right: var(--spacing-m);
text-decoration: none; text-decoration: none;
} }
</style> </style>