mirror of
https://github.com/bitwarden/mobile
synced 2025-12-10 13:23:39 +00:00
Import-link routes to import page after login (#2939)
Co-authored-by: Daniel James Smith <djsmith85@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
6b7c6eac71
commit
d6c139cb8a
@@ -40,11 +40,11 @@ namespace Bit.App.Pages
|
|||||||
|
|
||||||
private async Task GoToImportItemsAsync()
|
private async Task GoToImportItemsAsync()
|
||||||
{
|
{
|
||||||
var webVaultUrl = _environmentService.GetWebVaultUrl() + "/#/tools/import";
|
var toolsImportUrl = string.Format(ExternalLinksConstants.WEB_VAULT_TOOLS_IMPORT_FORMAT, _environmentService.GetWebVaultUrl());
|
||||||
var body = string.Format(AppResources.YouCanImportDataToYourVaultOnX, webVaultUrl);
|
var body = string.Format(AppResources.YouCanImportDataToYourVaultOnX, toolsImportUrl);
|
||||||
if (await _platformUtilsService.ShowDialogAsync(body, AppResources.ContinueToWebApp, AppResources.Continue, AppResources.Cancel))
|
if (await _platformUtilsService.ShowDialogAsync(body, AppResources.ContinueToWebApp, AppResources.Continue, AppResources.Cancel))
|
||||||
{
|
{
|
||||||
_platformUtilsService.LaunchUri(webVaultUrl);
|
_platformUtilsService.LaunchUri(toolsImportUrl);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,6 +13,11 @@
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public const string WEB_VAULT_SETTINGS_FORMAT = "{0}/#/settings";
|
public const string WEB_VAULT_SETTINGS_FORMAT = "{0}/#/settings";
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Link to go to individual vault import page. Requires to pass vault URL as parameter.
|
||||||
|
/// </summary>
|
||||||
|
public const string WEB_VAULT_TOOLS_IMPORT_FORMAT = "{0}/#/tools/import";
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// General website, not in the full format of a URL given that this is used as parameter of string resources to be shown to the user.
|
/// General website, not in the full format of a URL given that this is used as parameter of string resources to be shown to the user.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
Reference in New Issue
Block a user