15088: Handles browser navigation during link account ops
[arvados-workbench2.git] / src / services / link-account-service / link-account-service.ts
index ebae69ac37da2216d3f91aa1a2abc9017837ce77..42fae3654a224f74f58fe8e86bbf3e95fd7ad7c4 100644 (file)
@@ -16,15 +16,15 @@ export class LinkAccountService {
         protected serverApi: AxiosInstance,
         protected actions: ApiActions) { }
 
-    public saveToSession(account: AccountToLink) {
+    public saveAccountToLink(account: AccountToLink) {
         sessionStorage.setItem(USER_LINK_ACCOUNT_KEY, JSON.stringify(account));
     }
 
-    public removeFromSession() {
+    public removeAccountToLink() {
         sessionStorage.removeItem(USER_LINK_ACCOUNT_KEY);
     }
 
-    public getFromSession() {
+    public getAccountToLink() {
         const data = sessionStorage.getItem(USER_LINK_ACCOUNT_KEY);
         return data ? JSON.parse(data) as AccountToLink : undefined;
     }