@@ -29,9 +29,10 @@
import * as _ from "lodash-es";
import clsx from "clsx";
import { PropType, computed } from "vue";
-import { Icon, IconNames, Stack } from "@si/vue-lib/design-system";
+import { Icon, Stack } from "@si/vue-lib/design-system";
import { ActionPrototypeId, useActionsStore } from "@/store/actions.store";
import { ComponentId, useComponentsStore } from "@/store/components.store";
+import StatusIndicatorIcon from "./StatusIndicatorIcon.vue";
const props = defineProps({
componentId: { type: String as PropType, required: true },
@@ -57,15 +58,6 @@ const action = computed(() => {
const isActive = computed(() => !!action.value?.actionInstanceId);
-const iconName = computed(() => {
- if (!action.value) return "help-circle";
- if (action.value.name === "create") return "resource-create";
- if (action.value.name === "delete") return "resource-delete";
- if (action.value.name.trim() === "refresh") return "resource-refresh";
- if (action.value.name === "other") return "resource-question";
- return "help-circle";
-});
-
function clickHandler() {
if (!action.value) return;
if (action.value.actionInstanceId) {
diff --git a/app/web/src/components/AssetActionsDetails.vue b/app/web/src/components/AssetActionsDetails.vue
index 6b349f713c..c7bec76112 100644
--- a/app/web/src/components/AssetActionsDetails.vue
+++ b/app/web/src/components/AssetActionsDetails.vue
@@ -13,8 +13,9 @@
- Actions will be enacted upon click of the
- APPLY CHANGES button in the right rail.
+ Actions will be enacted after this change set has been applied. To
+ do so, deselect this component and click the "Apply Changes" button
+ in the top right.
-
-
+
-
-
-
-
-
- Drag the assets that you wish to include in your application into
- the canvas to the right.
-
-
+
+
+
+
+
@@ -98,14 +90,6 @@ import SiSearch from "@/components/SiSearch.vue";
defineProps<{ fixesAreRunning: boolean }>();
-const instructionsRef = ref();
-
-// const hideInstructions = () => {
-// if (instructionsRef.value) {
-// instructionsRef.value.classList.add("hidden");
-// }
-// };
-
const componentsStore = useComponentsStore();
// NOTE - component store is automatically fetching things we need when it is used
// otherwise we could trigger calls here
@@ -175,8 +159,13 @@ function onSelect(schemaId: string, fixesAreRunning: boolean) {
return;
}
- componentsStore.selectedInsertSchemaId = schemaId;
- selecting.value = true;
+ if (componentsStore.selectedInsertSchemaId === schemaId) {
+ componentsStore.selectedInsertSchemaId = null;
+ selecting.value = false;
+ } else {
+ componentsStore.selectedInsertSchemaId = schemaId;
+ selecting.value = true;
+ }
}
function onDeselect() {
diff --git a/app/web/src/components/AttributesPanel/AttributesPanel.vue b/app/web/src/components/AttributesPanel/AttributesPanel.vue
index 7d6f3f537c..c6bfbd773a 100644
--- a/app/web/src/components/AttributesPanel/AttributesPanel.vue
+++ b/app/web/src/components/AttributesPanel/AttributesPanel.vue
@@ -25,20 +25,6 @@
@blur="updateSiProp('name')"
@keyup.enter="updateSiProp('name')"
/>
-