+
- ⌞
- {{ prefix }}
- {{ folder.name }}
+
+ |
+
+
+ ⌞
+ ├
+ {{ folder.name }}
-
-
+
+
-
+
@@ -18,15 +24,34 @@
export default {
props: {
folder: Object,
- prefix: {
- type: String,
- default: ''
+ isLastItem: {
+ type: Boolean,
+ default: false
},
- selectedFolder: Object, // Den aktuellen ausgewählten Ordner als Prop übergeben
+ depth: {
+ type: Number,
+ default: 0
+ },
+ parentsWithChildren: {
+ type: Array,
+ default: () => []
+ },
+ selectedFolder: Object,
},
methods: {
selectFolder() {
- this.$emit('select-folder', this.folder); // Ordner auswählen und nach oben emitten
+ this.$emit('select-folder', this.folder);
+ },
+ forwardSelectFolderEvent(selectedFolder) {
+ this.$emit('select-folder', selectedFolder);
+ },
+ showPipe(index) {
+ return this.parentsWithChildren[index - 1];
+ },
+ getNewParentsWithChildrenList(index) {
+ const newParentsWithChildren = [...this.parentsWithChildren];
+ newParentsWithChildren.push(index < this.folder.children.length - 1);
+ return newParentsWithChildren;
}
}
};
@@ -48,5 +73,20 @@ export default {
.end-marker {
font-size: 1.2em;
vertical-align: middle;
+ margin-top: -22px;
+ padding-left: 3px;
+}
+
+.marker {
+ display: inline-block;
+ width: 10px;
+}
+
+.filler {
+ padding-left: 3.5px;
+}
+
+.folder-item {
+ margin: -2px 0;
}
diff --git a/frontend/src/dialogues/socialnetwork/ImageDialog.vue b/frontend/src/dialogues/socialnetwork/ImageDialog.vue
new file mode 100644
index 0000000..cf5e685
--- /dev/null
+++ b/frontend/src/dialogues/socialnetwork/ImageDialog.vue
@@ -0,0 +1,107 @@
+
+
+
+
+
![Image]()
+
+
+
+
+
+
+
+
+
+ {{
+ $t(`socialnetwork.gallery.visibility.${option.description}`) }}
+
+
+
+
+ {{ $t(`socialnetwork.gallery.visibility.${option.description}`) }}
+ ×
+
+
+
+
+
+
+
+
+
+
+
diff --git a/frontend/src/i18n/locales/de/socialnetwork.json b/frontend/src/i18n/locales/de/socialnetwork.json
index e5636b0..0805981 100644
--- a/frontend/src/i18n/locales/de/socialnetwork.json
+++ b/frontend/src/i18n/locales/de/socialnetwork.json
@@ -166,6 +166,14 @@
"folder_title": "Ordnername",
"visibility": "Sichtbar für",
"select_visibility": "Bitte auswählen"
+ },
+ "noimages": "In diesem Ordner befinden sich zur Zeit keine Bilder",
+ "imagedialog": {
+ "image_title": "Titel",
+ "edit_visibility": "Sichtbar für",
+ "save_changes": "Änderungen speichern",
+ "close": "Schließen",
+ "edit_visibility_placeholder": "Bitte auswählen"
}
}
}
diff --git a/frontend/src/views/social/GalleryView.vue b/frontend/src/views/social/GalleryView.vue
index 365c981..d159ddd 100644
--- a/frontend/src/views/social/GalleryView.vue
+++ b/frontend/src/views/social/GalleryView.vue
@@ -4,8 +4,9 @@
@@ -41,8 +42,8 @@
:close-on-select="false" label="description"
:placeholder="$t('socialnetwork.gallery.upload.selectvisibility')" :track-by="'value'">
- {{
- $t(`socialnetwork.gallery.visibility.${option.description}`) }}
+
+ {{ $t(`socialnetwork.gallery.visibility.${option.description}`) }}
@@ -54,24 +55,27 @@
-