Skip to content

armgit / dashy

Public Imported from GitHub
0

πŸš€ A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!

:art: Minor imprvments to code structure

Alicia Sykes4b291808f20d
diff --git a/src/components/InteractiveEditor/MoveItemTo.vue b/src/components/InteractiveEditor/MoveItemTo.vue
index 6d26a8b0..03196996 100644
--- a/src/components/InteractiveEditor/MoveItemTo.vue
+++ b/src/components/InteractiveEditor/MoveItemTo.vue
@@ -3,26 +3,31 @@
:name="modalName" @closed="close"
:resizable="true" width="40%" height="40%" classes="dashy-modal">
<div class="move-menu-inner">
+ <!-- Title and item ID -->
<h3 class="move-title">Move or Copy Item</h3>
<p class="item-id">Editing {{ itemId }}</p>
+ <!-- Radio, for move or copy -->
<Radio
v-model="operation"
:options="['Move', 'Copy']"
label="Operation Type"
:initialOption="operation"
/>
+ <!-- Select destionation section -->
<Select
v-model="selectedSection"
:options="sectionList"
:initialOption="selectedSection"
label="Destination"
/>
+ <!-- Radio, for choosing append to beginning or end -->
<Radio
v-model="appendTo"
:options="['Begining', 'End']"
label="Append To"
:initialOption="appendTo"
/>
+ <!-- Save and cancel buttons -->
<SaveCancelButtons :saveClick="save" :cancelClick="close" />
</div>
</modal>
diff --git a/src/components/LinkItems/Section.vue b/src/components/LinkItems/Section.vue
index e56bdc42..91060789 100644
--- a/src/components/LinkItems/Section.vue
+++ b/src/components/LinkItems/Section.vue
@@ -42,6 +42,7 @@
:statusCheckAllowInsecure="item.statusCheckAllowInsecure"
@itemClicked="$emit('itemClicked')"
@triggerModal="triggerModal"
+ :isAddNew="false"
/>
<!-- When in edit mode, show additional item, for Add New item -->
<Item v-if="isEditMode"
diff --git a/src/components/LinkItems/SectionContextMenu.vue b/src/components/LinkItems/SectionContextMenu.vue
index 1836fc46..8f9b12c1 100644
--- a/src/components/LinkItems/SectionContextMenu.vue
+++ b/src/components/LinkItems/SectionContextMenu.vue
@@ -63,7 +63,7 @@ export default {
};
</script>
-<style lang="scss">
+<style scoped lang="scss">
div.context-menu {
position: absolute;