Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit a0079df

Browse files
author
vikasrohit
committed
SUP-2883, URL should be removed after successful adding as web link.
-- Fixed
1 parent 5bfb378 commit a0079df

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/directives/external-account/external-web-links.directive.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@
3838
$log.debug("Web link added: " + JSON.stringify(data));
3939
data.data.provider = data.provider;
4040
$scope.linkedAccounts.push(data.data);
41+
// reset the form when it is successfully added
42+
$scope.addWebLinkFrm.$setPristine();
43+
$scope.url = null;
4144
toaster.pop('success', "Success", "Your link has been added. Data from your link will be visible on your profile shortly.");
4245
})
4346
.catch(function(resp) {

0 commit comments

Comments
 (0)