diff --git a/ui/public/i18n/en/translation.json b/ui/public/i18n/en/translation.json index 3aa9ff6d..aa4bbc94 100644 --- a/ui/public/i18n/en/translation.json +++ b/ui/public/i18n/en/translation.json @@ -79,7 +79,8 @@ "no_snapshot_to_restore": "No snapshot to restore", "start_typing_to_search": "Start typing to search file or folder", "restore_file_info": "The selected file or folder will be restored to '{restoredFolder}'. Ensure there is sufficient space on {node} to avoid restore failure.", - "restoring_to_share_name": "Restoring to share '{name}'" + "restoring_to_share_name": "Restoring to share '{name}'", + "searchbox_limit_reached": "Continue typing to show more options" }, "about": { "title": "About" diff --git a/ui/src/components/shared-folders/RestoreFileSearch.vue b/ui/src/components/shared-folders/RestoreFileSearch.vue index da803e0f..b7e655d6 100644 --- a/ui/src/components/shared-folders/RestoreFileSearch.vue +++ b/ui/src/components/shared-folders/RestoreFileSearch.vue @@ -127,44 +127,63 @@
-
+
- +
+ +
+
+ {{ item.label }} +
+
+
+
- {{ item.label }} + {{ $t("shares.searchbox_limit_reached") }}
@@ -289,6 +308,7 @@ export default { isHelper: false, isInvalid: false, isWarn: false, + limitReached: false, // internalOptions: [] //// loading: false, errorMessage: "" @@ -611,6 +631,7 @@ export default { this.loading = true; this.errorMessage = ""; + this.limitReached = false; this.doOpen(true); const taskAction = "seek-snapshot-contents"; const eventId = this.getUuid(); @@ -676,9 +697,17 @@ export default { value: item })); - // const fileSearchResults = taskResult.output; //// + this.limitReached = taskResult.output.limit_reached; //// will become a prop - // const fileSearchResults //// + // if (taskResult.output.limit_reached) { //// + // searchResults.push({ + // name: "limit_reached", + // label: this.$t("shares.searchbox_limit_reached"), + // value: "limit_reached", + // disabled: true + // }); + // } + // this.dataOptions = searchResults; this.loading = false; } @@ -711,6 +740,8 @@ export default {