Show message if user doesn't have any workspaces with export permissions (#10319)

Signed-off-by: Artem Savchenko <armisav@gmail.com>
This commit is contained in:
Artyom Savchenko
2025-12-19 20:27:07 +05:00
committed by GitHub
parent 33bb180505
commit c0f877561a
13 changed files with 30 additions and 13 deletions
+2 -1
View File
@@ -32,6 +32,7 @@
"SelectWorkspace": "Vybrat pracovní prostor",
"SelectWorkspaceToExport": "Vybrat pracovní prostor pro export {count, plural, =1 {1 dokument} other {# dokumentů}}",
"SelectSpace": "Vybrat prostor",
"NoSelectedDocuments": "Žádné dokumenty nevybrány"
"NoSelectedDocuments": "Žádné dokumenty nevybrány",
"RequestPermissionToImport": "Prosím, požádejte vlastníka cílového pracovního prostoru o povolení k importu dokumentů."
}
}
+2 -1
View File
@@ -32,6 +32,7 @@
"SelectWorkspace": "Arbeitsbereich auswählen",
"SelectWorkspaceToExport": "Arbeitsbereich zum Exportieren von {count, plural, =1 {1 Dokument} other {# Dokumenten}} auswählen",
"SelectSpace": "Bereich auswählen",
"NoSelectedDocuments": "Keine Dokumente ausgewählt"
"NoSelectedDocuments": "Keine Dokumente ausgewählt",
"RequestPermissionToImport": "Bitte fordern Sie die Berechtigung vom Eigentümer des Ziel-Arbeitsbereichs an, um Dokumente zu importieren."
}
}
+2 -1
View File
@@ -32,6 +32,7 @@
"SelectWorkspace": "Select workspace",
"SelectWorkspaceToExport": "Select workspace to export {count, plural, =1 {1 document} other {# documents}}",
"SelectSpace": "Select space",
"NoSelectedDocuments": "No documents selected"
"NoSelectedDocuments": "No documents selected",
"RequestPermissionToImport": "Please request permission from the target workspace owner to import documents."
}
}
+2 -1
View File
@@ -32,6 +32,7 @@
"SelectWorkspace": "Seleccionar espacio de trabajo",
"SelectWorkspaceToExport": "Seleccionar espacio de trabajo para exportar {count, plural, =1 {1 documento} other {# documentos}}",
"SelectSpace": "Seleccionar espacio",
"NoSelectedDocuments": "No hay documentos seleccionados"
"NoSelectedDocuments": "No hay documentos seleccionados",
"RequestPermissionToImport": "Por favor, solicite permiso al propietario del espacio de trabajo de destino para importar documentos."
}
}
+2 -1
View File
@@ -32,6 +32,7 @@
"SelectWorkspace": "Sélectionner l'espace de travail",
"SelectWorkspaceToExport": "Sélectionner l'espace de travail pour exporter {count, plural, =1 {1 document} other {# documents}}",
"SelectSpace": "Sélectionner l'espace",
"NoSelectedDocuments": "Aucun document sélectionné"
"NoSelectedDocuments": "Aucun document sélectionné",
"RequestPermissionToImport": "Veuillez demander l'autorisation au propriétaire de l'espace de travail cible pour importer des documents."
}
}
+2 -1
View File
@@ -32,6 +32,7 @@
"SelectWorkspace": "Seleziona spazio di lavoro",
"SelectWorkspaceToExport": "Seleziona spazio di lavoro per esportare {count, plural, =1 {1 documento} other {# documenti}}",
"SelectSpace": "Seleziona spazio",
"NoSelectedDocuments": "Nessun documento selezionato"
"NoSelectedDocuments": "Nessun documento selezionato",
"RequestPermissionToImport": "Si prega di richiedere l'autorizzazione al proprietario dello spazio di lavoro di destinazione per importare documenti."
}
}
+2 -1
View File
@@ -32,6 +32,7 @@
"SelectWorkspace": "ワークスペースを選択",
"SelectWorkspaceToExport": "{count, plural, =1 {1 件のドキュメント} other {# 件のドキュメント}}をエクスポートするワークスペースを選択",
"SelectSpace": "スペースを選択",
"NoSelectedDocuments": "ドキュメントが選択されていません"
"NoSelectedDocuments": "ドキュメントが選択されていません",
"RequestPermissionToImport": "ドキュメントをインポートするには、対象ワークスペースの所有者に許可をリクエストしてください。"
}
}
+2 -1
View File
@@ -32,6 +32,7 @@
"SelectWorkspace": "Selecionar espaço de trabalho",
"SelectWorkspaceToExport": "Selecionar espaço de trabalho para exportar {count, plural, =1 {1 documento} other {# documentos}}",
"SelectSpace": "Selecionar espaço",
"NoSelectedDocuments": "Nenhum documento selecionado"
"NoSelectedDocuments": "Nenhum documento selecionado",
"RequestPermissionToImport": "Por favor, solicite permissão ao proprietário do espaço de trabalho de destino para importar documentos."
}
}
+2 -1
View File
@@ -32,6 +32,7 @@
"SelectWorkspace": "Выбрать рабочее пространство",
"SelectWorkspaceToExport": "Выбрать рабочее пространство для экспорта {count, plural, =1 {1 документ} one {# документ} few {# документа} other {# документов}}",
"SelectSpace": "Выбрать пространство",
"NoSelectedDocuments": "Документы не выбраны"
"NoSelectedDocuments": "Документы не выбраны",
"RequestPermissionToImport": "Пожалуйста, запросите разрешение у владельца рабочего пространства, куда вы хотите экспортировать документы."
}
}
+2 -1
View File
@@ -32,6 +32,7 @@
"SelectWorkspace": "Çalışma alanı seç",
"SelectWorkspaceToExport": "{count, plural, =1 {1 belgeyi} other {# belgeyi}} dışa aktarmak için çalışma alanı seç",
"SelectSpace": "Alan seç",
"NoSelectedDocuments": "Seçili belge yok"
"NoSelectedDocuments": "Seçili belge yok",
"RequestPermissionToImport": "Belgeleri içe aktarmak için lütfen hedef çalışma alanı sahibinden izin isteyin."
}
}
+2 -1
View File
@@ -32,6 +32,7 @@
"SelectWorkspace": "选择工作区",
"SelectWorkspaceToExport": "选择工作区以导出 {count, plural, =1 {1 文档} other {# 个文档}}",
"SelectSpace": "选择空间",
"NoSelectedDocuments": "未选择文档"
"NoSelectedDocuments": "未选择文档",
"RequestPermissionToImport": "请向目标工作区所有者请求导入文档的权限。"
}
}
@@ -114,7 +114,11 @@
>
<div class="flex-col gap-2">
<span class="pb-4 secondary-textColor">
<Label label={plugin.string.SelectWorkspaceToExport} params={{ count: selectedDocs.length }} />
{#if !workspaceLoading && workspaces.length === 0}
<Label label={plugin.string.RequestPermissionToImport} />
{:else}
<Label label={plugin.string.SelectWorkspaceToExport} params={{ count: selectedDocs.length }} />
{/if}
</span>
<DropdownLabels
placeholder={plugin.string.TargetWorkspace}
@@ -122,6 +126,7 @@
bind:selected={targetWorkspace}
autoSelect={false}
loading={workspaceLoading}
disabled={workspaces.length === 0}
kind="regular"
size="large"
/>
+2 -1
View File
@@ -45,6 +45,7 @@ export default mergeIds(exportId, exportPlugin, {
SelectWorkspace: '' as IntlString,
SelectWorkspaceToExport: '' as IntlString<{ count: number }>,
SelectSpace: '' as IntlString,
NoSelectedDocuments: '' as IntlString
NoSelectedDocuments: '' as IntlString,
RequestPermissionToImport: '' as IntlString
}
})