Skip to content

Commit

Permalink
Refine workflow step icons..
Browse files Browse the repository at this point in the history
  • Loading branch information
jmchilton committed Nov 22, 2023
1 parent 5291b69 commit 504bd47
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
12 changes: 9 additions & 3 deletions client/src/components/Workflow/icons.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
import { library } from "@fortawesome/fontawesome-svg-core";
import { faFile } from "@fortawesome/free-regular-svg-icons";
import { faFolderOpen, faPause, faPencilAlt, faSitemap, faWrench } from "@fortawesome/free-solid-svg-icons";

library.add(faWrench, faFile, faSitemap, faPencilAlt, faPause, faFolderOpen);

export default {
tool: "fa-wrench",
data_input: "fa-file-o",
data_collection_input: "fa-folder-o",
data_input: "fa-file-o fa-file", // fa-file-o for older FontAwesome, fa-file is the only thing I could find newer font awesome
data_collection_input: "fa-folder-o fa-folder-open",
subworkflow: "fa-sitemap fa-rotate-270",
parameter_input: "fa-pencil",
parameter_input: "fa-pencil-alt", // fa-pencil for older FontAwesome, fa-pencil-alt for newer
pause: "fa-pause",
};
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<script lang="ts" setup>
import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome";
import { computed } from "vue";
import WorkflowIcons from "@/components/Workflow/icons";
Expand All @@ -12,11 +13,8 @@ const props = defineProps<WorkflowStepIconProps>();
const stepIcon = computed(() => {
return WorkflowIcons[props.stepType];
});
const cssClasses = computed(() => {
return ["fa", "mr-1", stepIcon.value];
});
</script>

<template>
<i :class="cssClasses"></i>
<FontAwesomeIcon class="mr-1" :icon="stepIcon" />
</template>

0 comments on commit 504bd47

Please sign in to comment.