Skip to content

Commit

Permalink
add trmm icon to builtin scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
sadnub committed Nov 24, 2023
1 parent be99964 commit 1299bfc
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
Binary file added src/assets/trmm_256.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 17 additions & 2 deletions src/components/scripts/ScriptManager.vue
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,14 @@
<q-tooltip> Shell </q-tooltip>
</q-icon>

<!-- is community script icon -->
<q-img
v-if="props.row.script_type === 'builtin'"
src="../../assets/trmm_256.png"
spinner-color="red"
style="height: 20px; max-width: 20px"
/>

<span
class="q-pl-xs text-weight-bold"
:style="{ color: props.node.hidden ? 'grey' : '' }"
Expand Down Expand Up @@ -488,6 +496,13 @@
:props="props"
:style="{ color: props.row.hidden ? 'grey' : '' }"
>
<!-- is community script icon -->
<q-img
v-if="props.row.script_type === 'builtin'"
src="../../assets/trmm_256.png"
spinner-color="red"
style="height: 20px; max-width: 20px"
/>
{{ truncateText(props.row.name, 50) }}
<q-tooltip
v-if="props.row.name.length >= 50"
Expand Down Expand Up @@ -620,7 +635,7 @@ export default {
// setup vuex store
const store = useStore();
const showCommunityScripts = computed(
() => store.state.showCommunityScripts
() => store.state.showCommunityScripts,
);
// setup quasar plugins
Expand Down Expand Up @@ -721,7 +736,7 @@ export default {
return showCommunityScripts.value
? scripts.value.filter((i) => !i.hidden)
: scripts.value.filter(
(i) => i.script_type !== "builtin" && !i.hidden
(i) => i.script_type !== "builtin" && !i.hidden,
);
}
});
Expand Down

0 comments on commit 1299bfc

Please sign in to comment.