diff --git a/plugins/board-assets/lang/en.json b/plugins/board-assets/lang/en.json
index c6a96e5882..32595d4a1f 100644
--- a/plugins/board-assets/lang/en.json
+++ b/plugins/board-assets/lang/en.json
@@ -78,6 +78,10 @@
"Remove": "Remove",
"NullDate": "M/D/YYYY",
"ViewProfile": "View profile",
- "RemoveFromCard": "Remove from card"
+ "RemoveFromCard": "Remove from card",
+ "LinkName": "Link name",
+ "Edit": "Edit",
+ "Update": "Update",
+ "DeleteAttachment": "Deleting an attachment is permanent. There is no undo."
}
}
diff --git a/plugins/board-assets/lang/ru.json b/plugins/board-assets/lang/ru.json
index ed11b294c4..71df39afa8 100644
--- a/plugins/board-assets/lang/ru.json
+++ b/plugins/board-assets/lang/ru.json
@@ -78,6 +78,10 @@
"Remove": "Удалить",
"NullDate": "М/Д/ГГГГ",
"ViewProfile": "Перейти в профиль",
- "RemoveFromCard": "Удалить из карточки"
+ "RemoveFromCard": "Удалить из карточки",
+ "LinkName": "Имя ссылки",
+ "Edit": "Изменить",
+ "Update": "Обновить",
+ "DeleteAttachment": "Удаление вложения необратимо. Отмена невозможна."
}
}
diff --git a/plugins/board-resources/src/components/popups/EditAttachment.svelte b/plugins/board-resources/src/components/popups/EditAttachment.svelte
new file mode 100644
index 0000000000..0939d732a2
--- /dev/null
+++ b/plugins/board-resources/src/components/popups/EditAttachment.svelte
@@ -0,0 +1,44 @@
+
+
+
diff --git a/plugins/board-resources/src/components/popups/RemoveAttachment.svelte b/plugins/board-resources/src/components/popups/RemoveAttachment.svelte
new file mode 100644
index 0000000000..09925615fa
--- /dev/null
+++ b/plugins/board-resources/src/components/popups/RemoveAttachment.svelte
@@ -0,0 +1,40 @@
+
+
+
diff --git a/plugins/board-resources/src/components/presenters/AttachmentPresenter.svelte b/plugins/board-resources/src/components/presenters/AttachmentPresenter.svelte
index 943d4d1301..5ab83e2098 100644
--- a/plugins/board-resources/src/components/presenters/AttachmentPresenter.svelte
+++ b/plugins/board-resources/src/components/presenters/AttachmentPresenter.svelte
@@ -12,14 +12,77 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-->
+
-
-
+
+ {#if openEmbedded(value.type)}
+
+
+
+ {:else}
+
{iconLabel(value.name)}
+ {/if}
+
+
{trimFilename(value.name)}
+
+
+ {showPopup(EditAttachment, {object: value})}} kind="transparent"/>
+ {showPopup(RemoveAttachment, {object: value})}} kind="transparent"/>
+
+
+
+
diff --git a/plugins/board-resources/src/plugin.ts b/plugins/board-resources/src/plugin.ts
index 38ab9fc2b2..45a959edf3 100644
--- a/plugins/board-resources/src/plugin.ts
+++ b/plugins/board-resources/src/plugin.ts
@@ -99,7 +99,11 @@ export default mergeIds(boardId, board, {
Remove: '' as IntlString,
NullDate: '' as IntlString,
ViewProfile: '' as IntlString,
- RemoveFromCard: '' as IntlString
+ RemoveFromCard: '' as IntlString,
+ LinkName: '' as IntlString,
+ Edit: '' as IntlString,
+ Update: '' as IntlString,
+ DeleteAttachment: '' as IntlString
},
component: {
Boards: '' as AnyComponent,